Skip to content

Commit

Permalink
fix nginx headers
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilReinking committed Sep 12, 2024
1 parent 49698c0 commit 6c04e82
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions scripts/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,27 @@ http {
server_tokens off;

gzip on;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_types text/plain application/xml text/css text/js text/xml application/x-javascript text/javascript application/json application/xml+rss;
gzip_vary on;
gzip_disable "msie6";

gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;

# Include other server configs
include /etc/nginx/conf.d/*.conf;
Expand Down
2 changes: 1 addition & 1 deletion scripts/nginx/nginx.default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ server {

client_max_body_size 8M;

add_header Referrer-Policy 'origin';
add_header Referrer-Policy 'strict-origin-when-cross-origin';

location / {
# First attempt to serve request as file, then
Expand Down

0 comments on commit 6c04e82

Please sign in to comment.