Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 443 ssl;
- server_name localhost;
- ssl_password_file /etc/ssl/certs/pass;
- ssl_certificate /etc/ssl/certs/server.crt;
- ssl_certificate_key /etc/ssl/certs/server.key;
- location / {
- 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-Host $host;
- proxy_set_header X-Forwarded-Server $host;
- proxy_set_header X-Forwarded-Port $server_port;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header SSL_CLIENT_CERT $ssl_client_cert;
- proxy_pass https://keycloak:8443/realms/master/protocol/openid-connect/token;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement