blob: e18c1e831ba0a44900cdfc98b7da30080c1edb93 [file] [log] [blame]
sebdet1e865922019-08-27 17:56:04 -07001server {
2
3 listen 443 default ssl;
4 ssl_protocols TLSv1.2;
5 ssl_certificate /etc/ssl/clamp.pem;
6 ssl_certificate_key /etc/ssl/clamp.key;
sebdet8ed71d02019-10-17 11:17:03 +02007 ssl_verify_client optional_no_ca;
sebdet1e865922019-08-27 17:56:04 -07008 location /restservices/clds/ {
9 proxy_pass https://clamp-backend:8443;
sebdet8ed71d02019-10-17 11:17:03 +020010 proxy_set_header X-SSL-Cert $ssl_client_escaped_cert;
sebdet1e865922019-08-27 17:56:04 -070011 }
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}