-
Notifications
You must be signed in to change notification settings - Fork 2
/
proxy.conf.example
33 lines (29 loc) · 1.39 KB
/
proxy.conf.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
server {
listen 0.0.0.0:8443 ssl;
server_name # Add your domain name for the back-end web service here.
reverse-proxy # This is the within-docker name.
localhost 127.0.0.1;
# Volumes mounted in the compose.yml
ssl_certificate /opt/bitnami/nginx/conf/web-cert.pem;
ssl_certificate_key /opt/bitnami/nginx/conf/web-key.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers 'DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-CHACHA20-POLY1305:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256';
add_header Strict-Transport-Security "max-age=31536000" always;
gzip_types application/json text/plain text/css application/javascript text/xml application/xml+rss;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
# The overall software version currently deployed in this environment.
location = /software-version {
root /app;
try_files /software-version =404;
}
# The PDC API implementation, the web service.
location / {
proxy_pass http://web:3000;
}
}