2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 20:20:24 +02: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 {
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
listen 80;
autoindex on;
root /www/data;