Config nginx:
server {
listen 443 ssl;
ssl_client_certificate /etc/certificates/gn-chain-pix-prod.crt;
ssl_verify_client optional;
ssl_verify_depth 2;
ssl_certificate /etc/certificates/server_ssl.crt;
ssl_certificate_key /etc/certificates/server_ssl.key;
server_name dnsaqui;
location /gn/pix {
if ($ssl_client_verify != SUCCESS) {
return 403;
}
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header SSL_Client $ssl_client_s_dn;
proxy_set_header SSL_Client_Verify $ssl_client_verify;
proxy_pass
http://192.168.0.114:6060/pix;
}
location /gn {
if ($ssl_client_verify != SUCCESS) {
return 403;
}
return 200 'OK';
}
}