diff --git a/deploy/nginx/nginx.conf b/deploy/nginx/nginx.conf index 8cda0a5ddf9e231e0f3ff5eb39dc5b4682df2d16..d320a553fcc997056f791004c69f6bb13acac4b0 100644 --- a/deploy/nginx/nginx.conf +++ b/deploy/nginx/nginx.conf @@ -96,10 +96,10 @@ http { # return 301 https://opengauss.org/zh/; # } - location ~ /\. { - deny all; - return 404; - } + # location ~ /\. { + # deny all; + # return 404; + # } location = / { rewrite ^/$ /zh/issues/ redirect; @@ -109,7 +109,6 @@ http { } location / { - limit_req zone=ratelimit burst=5 nodelay; proxy_set_header X-Forwarded-For $http_x_real_ip; proxy_set_header Host $host; @@ -118,12 +117,12 @@ http { add_header X-Frame-Options DENY; add_header X-Content-Type-Options nosniff; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; - add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'none'; frame-src 'none'; "; + add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'none'; frame-src 'none'"; add_header Cache-Control "public,max-age=1209600"; } location / { - try_files $uri $uri/ /index.html; + try_files $uri /index.html; } root /usr/share/nginx/www;