blob: 84beff8d5ae3deba606d1ff75e548972ff096d1f [file] [log] [blame]
sebdetd85e24c2019-09-04 18:35:26 +02001server {
2
sebdet93b4fd42020-03-25 09:19:34 -07003 listen 2443 default ssl;
sebdetd85e24c2019-09-04 18:35:26 +02004 ssl_protocols TLSv1.2;
5 ssl_certificate /etc/ssl/clamp.pem;
6 ssl_certificate_key /etc/ssl/clamp.key;
sebdet60589992019-10-17 11:13:55 +02007 ssl_verify_client optional_no_ca;
sebdetd85e24c2019-09-04 18:35:26 +02008 location /restservices/clds/ {
9 proxy_pass https://clamp-backend:443;
sebdet60589992019-10-17 11:13:55 +020010 proxy_set_header X-SSL-Cert $ssl_client_escaped_cert;
sebdetd85e24c2019-09-04 18:35:26 +020011 }
12
13 location / {
14 root /usr/share/nginx/html;
15 index index.html index.htm;
16 try_files $uri $uri/ /index.html;
17 }
18
19 error_page 500 502 503 504 /50x.html;
20
21 location = /50x.html {
22 root /usr/share/nginx/html;
23 }
24
25}