mirror of
https://github.com/offen/website.git
synced 2024-12-23 13:30:20 +01:00
force ssl on nginx level
This commit is contained in:
parent
582fc4f3c4
commit
e04093fceb
@ -12,6 +12,9 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
if ($scheme = http) {
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
listen 80;
|
||||
autoindex on;
|
||||
root /www/data;
|
||||
|
Loading…
Reference in New Issue
Block a user