Removed depreciated SSL, duplicate location / entry

This commit is contained in:
Marwolf
2018-07-27 13:12:57 -04:00
parent d756226c47
commit 391449f1dc
2 changed files with 0 additions and 11 deletions

View File

@@ -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;

View File

@@ -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;