2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 09:00:28 +01:00

force ssl on nginx level

This commit is contained in:
Frederik Ring 2019-09-12 08:36:56 +02:00
parent 582fc4f3c4
commit e04093fceb

View File

@ -12,6 +12,9 @@ http {
} }
server { server {
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
listen 80; listen 80;
autoindex on; autoindex on;
root /www/data; root /www/data;