http to https redirect
This commit is contained in:
@@ -70,6 +70,9 @@ http {
|
||||
# disable default server
|
||||
%DISABLE_DEFAULT_SERVER%
|
||||
|
||||
# redirect HTTP to HTTPS
|
||||
%REDIRECT_HTTP_TO_HTTPS%
|
||||
|
||||
# geoip2 config
|
||||
geoip2 /etc/nginx/geoip.mmdb {
|
||||
auto_reload 5m;
|
||||
|
||||
5
confs/redirect-http-to-https.conf
Normal file
5
confs/redirect-http-to-https.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name %SERVER_NAME%;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
Reference in New Issue
Block a user