mirror of
https://github.com/offen/website.git
synced 2024-11-22 17:10:29 +01:00
force ssl on nginx level
This commit is contained in:
parent
582fc4f3c4
commit
e04093fceb
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user