Skip to content

Commit

Permalink
fix(docker): fix nginx config for selfserve & internal (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense authored Apr 26, 2024
1 parent def2ba5 commit ecff991
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions infra/docker/internal/internal.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,19 @@ map $sent_http_content_type $referrer_policy {
~*text/(css|html|javascript)|application\/pdf|xml "strict-origin-when-cross-origin";
}

# Add X-Frame-Options for HTML documents.
# h5bp/security/x-frame-options.conf
map $sent_http_content_type $x_frame_options {
~*text/html DENY;
}

server {
listen 8080;
listen [::]:8080;
listen 80;
listen [::]:80;

server_name _;

root /var/www/public;
root /var/www/html/public;

# Protect website against clickjacking.
#
Expand Down
12 changes: 9 additions & 3 deletions infra/docker/selfserve/selfserve.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,19 @@ map $sent_http_content_type $referrer_policy {
~*text/(css|html|javascript)|application\/pdf|xml "strict-origin-when-cross-origin";
}

# Add X-Frame-Options for HTML documents.
# h5bp/security/x-frame-options.conf
map $sent_http_content_type $x_frame_options {
~*text/html DENY;
}

server {
listen 8080;
listen [::]:8080;
listen 80;
listen [::]:80;

server_name _;

root /var/www/public;
root /var/www/html/public;

# Protect website against clickjacking.
#
Expand Down

0 comments on commit ecff991

Please sign in to comment.