Skip to content

Commit

Permalink
- updated nginx conf
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 committed Oct 11, 2023
1 parent 3b7d24c commit 3d9d70d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tdrs-frontend/nginx/cloud.gov/buildpack.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ http {
log_format compression '$remote_addr - $remote_user [$time_local] '
'"proxy_host and upstream_addr": $proxy_host $upstream_addr, '
' "request": $request, '
'"body_bytes_sent" : $body_bytes_sent, '
'"body_bytes_sent" : $body_bytes_sent, '
'"request_body": $request_body, '
'"http_x_forwarded_for": $http_x_forwarded_for, '
'"http_x_forwarded_for": $http_x_forwarded_for, '
'"host": $host, '
' "status": $status, '
'"proxy_add_x_forwarded_for": $proxy_add_x_forwarded_for, '
Expand All @@ -47,7 +47,7 @@ http {
}

client_max_body_size 100m;

# Block all requests except ones listed in whitelist; disabled for local
# First have to correct the source IP address using real_ip_header, otherwise
# the IP address will be the internal IP address of the router
Expand All @@ -63,7 +63,7 @@ http {
set $CSP "default-src 'self';";
set $CSP "${CSP}script-src 'self';";
set $CSP "${CSP}script-src-elem 'self';";
set $CSP "${CSP}script-src-attr 'self';";
set $CSP "${CSP}script-src-attr 'self' 'unsafe-inline';";
set $CSP "${CSP}img-src 'self' data:;";
set $CSP "${CSP}font-src 'self';";
set $CSP "${CSP}connect-src 'self' ${CONNECT_SRC};";
Expand Down
6 changes: 3 additions & 3 deletions tdrs-frontend/nginx/local/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ http {
set $CSP "${CSP}prefetch-src 'none';";
set $CSP "${CSP}form-action *;";
set $CSP "${CSP}script-src-elem 'self' http://localhost:* http://www.w3.org;";
set $CSP "${CSP}script-src-attr 'self';";
set $CSP "${CSP}script-src-attr 'self' 'unsafe-inline';";
set $CSP "${CSP}style-src-elem 'self' 'unsafe-inline';";
set $CSP "${CSP}style-src-attr 'self';";
set $CSP "${CSP}worker-src 'none';";
Expand All @@ -104,7 +104,7 @@ http {

access_log /dev/stdout compression;
#access_log stderr compression;

# Content caching
# saves cached fies in /tmp
# cache zone name = tdp_cache
Expand All @@ -126,7 +126,7 @@ http {
set $CSP "default-src 'self';";
set $CSP "${CSP}script-src 'self';";
set $CSP "${CSP}script-src-elem 'self';";
set $CSP "${CSP}script-src-attr 'self';";
set $CSP "${CSP}script-src-attr 'self' 'unsafe-inline';";
set $CSP "${CSP}img-src 'self' data:;";
set $CSP "${CSP}font-src 'self';";
set $CSP "${CSP}manifest-src 'self';";
Expand Down

0 comments on commit 3d9d70d

Please sign in to comment.