Removed depreciated SSL, duplicate location / entry
This commit is contained in:
@@ -55,11 +55,6 @@ server {
|
||||
deny all;
|
||||
}
|
||||
|
||||
# Block accidental directory listing
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# Instructs visitor browser to cache files for 1 month
|
||||
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
|
||||
expires 1M;
|
||||
@@ -109,7 +104,6 @@ server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name ${NGINX_HOST};
|
||||
ssl on;
|
||||
add_header Strict-Transport-Security "max-age=31536000" always;
|
||||
ssl_session_cache shared:SSL:20m;
|
||||
ssl_session_timeout 10m;
|
||||
|
||||
@@ -50,11 +50,6 @@ server {
|
||||
deny all;
|
||||
}
|
||||
|
||||
# Block accidental directory listing
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# Instructs visitor browser to cache files for 1 month
|
||||
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
|
||||
expires 1M;
|
||||
|
||||
Reference in New Issue
Block a user