-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
6 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,140 +18,6 @@ redis: | |
|
||
nginx: | ||
replicaCount: 3 | ||
serverBlock: |- | ||
server { | ||
listen 8080; | ||
server_name localhost *.gov.bc.ca; | ||
location / { | ||
proxy_pass http://prod-frontend:8080/; | ||
} | ||
location ^~ /api/ { | ||
proxy_pass http://prod-webapi:8080/api/; | ||
} | ||
location ^~ /api/v1/ { | ||
proxy_pass http://prod-webapi:8080/api/; | ||
} | ||
location ^~ /api/v1/PLRHL7 { | ||
proxy_pass http://prod-webapi:8080/api/PLRHL7; | ||
proxy_set_header X-SSL-CERT $ssl_client_escaped_cert; | ||
} | ||
location ^~ /midas/ { | ||
proxy_pass http://midas-probe:80/midas/; | ||
} | ||
# Deny all attempts to access hidden files such as .htaccess or .htpasswd | ||
location ~ /\. { | ||
deny all; | ||
} | ||
# required for metrics exporter | ||
location /status { | ||
stub_status on; | ||
access_log off; | ||
allow 127.0.0.1; | ||
deny all; | ||
} | ||
} | ||
server { | ||
listen 8443 ssl; | ||
server_name localhost *.gov.bc.ca; | ||
ssl_certificate certs/tls.crt; | ||
ssl_certificate_key certs/tls.key; | ||
ssl_verify_client optional_no_ca; | ||
ssl_protocols TLSv1.2 TLSv1.3; | ||
ssl_client_certificate certs/plr/trusted-ca-certs.pem; | ||
set $CSP_style "style-src 'self' 'unsafe-inline' *.googleapis.com *.gstatic.com https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"; | ||
set $CSP_font "font-src 'self' data: *.googleapis.com *.gstatic.com"; | ||
set $CSP_frame "frame-ancestors 'self' *.oidc.gov.bc.ca oidc.gov.bc.ca"; | ||
set $CSP_SCRIPT "script-src 'self' 'unsafe-inline' https://code.jquery.com/jquery-3.6.0.min.js"; | ||
set $CSP "default-src 'self' 'unsafe-inline' *.hlth.gov.bc.ca ; ${CSP_style} ; ${CSP_font} ; ${CSP_SCRIPT} ; ${CSP_frame}"; | ||
add_header Content-Security-Policy $CSP; | ||
add_header X-Frame-Options "ALLOW-FROM dev.oidc.gov.bc.ca oidc.gov.bc.ca" always; | ||
add_header X-XSS-Protection "1; mode=block" always; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload" always; | ||
add_header X-Content-Type-Options "nosniff" always; | ||
add_header Referrer-Policy "no-referrer-when-downgrade"; | ||
location / { | ||
proxy_pass http://prod-frontend:8080/; | ||
} | ||
location ^~ /api/ { | ||
proxy_pass http://prod-webapi:8080/api/; | ||
} | ||
location ^~ /api/v1/ { | ||
proxy_pass http://prod-webapi:8080/api/; | ||
} | ||
location ^~ /api/v1/PLRHL7 { | ||
proxy_pass http://prod-webapi:8080/api/PLRHL7; | ||
proxy_set_header X-SSL-CERT $ssl_client_escaped_cert; | ||
} | ||
location ^~ /midas/ { | ||
proxy_pass http://midas-probe:80/midas/; | ||
} | ||
# Deny all attempts to access hidden files such as .htaccess or .htpasswd | ||
location ~ /\. { | ||
deny all; | ||
} | ||
# required for metrics exporter | ||
location /status { | ||
stub_status on; | ||
access_log off; | ||
allow 127.0.0.1; | ||
deny all; | ||
} | ||
} | ||
server { | ||
listen 8543 ssl; | ||
server_name localhost *.gov.bc.ca; | ||
ssl_certificate certs/tls.crt; | ||
ssl_certificate_key certs/tls.key; | ||
ssl_verify_client optional_no_ca; | ||
ssl_protocols TLSv1.2 TLSv1.3; | ||
ssl_client_certificate certs/plr/trusted-ca-certs.pem; | ||
set $CSP_style "style-src 'self' 'unsafe-inline' *.googleapis.com *.gstatic.com; "; | ||
set $CSP_font "font-src 'self' data: *.googleapis.com *.gstatic.com; "; | ||
set $CSP_frame "frame-ancestors 'self' *.oidc.gov.bc.ca oidc.gov.bc.ca"; | ||
set $CSP "default-src 'self' ; ${CSP_style} ${CSP_font} ${CSP_frame}"; | ||
add_header Content-Security-Policy $CSP; | ||
add_header X-Frame-Options "ALLOW-FROM dev.oidc.gov.bc.ca oidc.gov.bc.ca" always; | ||
add_header X-XSS-Protection "1; mode=block" always; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload" always; | ||
add_header X-Content-Type-Options "nosniff" always; | ||
add_header Referrer-Policy "no-referrer-when-downgrade"; | ||
location ^~ /api/v1/PLRHL7 { | ||
proxy_pass http://prod-plr-intake:8080/api/PLRHL7; | ||
proxy_set_header X-SSL-CERT $ssl_client_escaped_cert; | ||
} | ||
# Deny all attempts to access hidden files such as .htaccess or .htpasswd | ||
location ~ /\. { | ||
deny all; | ||
} | ||
# required for metrics exporter | ||
location /status { | ||
stub_status on; | ||
access_log off; | ||
allow 127.0.0.1; | ||
deny all; | ||
} | ||
} | ||
fluentbit: | ||
enabled: true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters