diff options
Diffstat (limited to 'spring-front/nginx.conf')
-rw-r--r-- | spring-front/nginx.conf | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spring-front/nginx.conf b/spring-front/nginx.conf index bd12e62..9d6d5c1 100644 --- a/spring-front/nginx.conf +++ b/spring-front/nginx.conf @@ -3,9 +3,11 @@ events { } http { include /etc/nginx/mime.types; + server_tokens off; + limit_req_zone $binary_remote_addr zone=one:10m rate=30r/m; server { listen 443 ssl http2; - keepalive_timeout 70; + keepalive_timeout 60; charset utf-8; ssl_certificate /certs/server.cert; ssl_certificate_key /certs/server.key; @@ -19,10 +21,11 @@ http { add_header X-Frame-Options SAMEORIGIN always; add_header X-XSS-Protection "1; mode=block" always; fastcgi_hide_header X-Powered-By; + error_page 401 403 404 /404.html; location / { root /usr/share/nginx/html; index index.html; - try_files $uri $uri/ /index.html; + try_files $uri $uri/ =404; } } } |