Skip to content

Commit

Permalink
Nginx Fix:2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sak1012 committed Nov 11, 2024
1 parent ad1d4a2 commit d81dcf2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deployment/docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ http {
server_names_hash_bucket_size 64;

include /etc/nginx/mime.types;
default_type application/octet-stream;
add_header X-Content-Type-Options nosniff;

access_log /var/log/nginx/access.log private;
error_log /var/log/nginx/error.log;
add_header Referrer-Policy same-origin;

gzip on;
gzip_disable "msie6";
gzip_types text/plain text/html text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml image/svg+xml;
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml image/svg+xml;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
Expand All @@ -55,6 +52,10 @@ http {
index index.php index.html;
root /var/www;

add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy same-origin always;


add_header 'Access-Control-Allow-Origin' $allowed_origin always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE' always;
Expand Down Expand Up @@ -97,4 +98,3 @@ http {
}
}
}

0 comments on commit d81dcf2

Please sign in to comment.