Advertisement
zhuman

Untitled

Mar 28th, 2023 (edited)
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.82 KB | None | 0 0
  1. server {
  2.     listen              443 ssl;
  3.     server_name         localhost;
  4.  
  5.     ssl_password_file   /etc/ssl/certs/pass;
  6.     ssl_certificate     /etc/ssl/certs/server.crt;
  7.     ssl_certificate_key /etc/ssl/certs/server.key;
  8.  
  9.     location / {
  10.         proxy_set_header    Host               $host;
  11.         proxy_set_header    X-Real-IP          $remote_addr;
  12.         proxy_set_header    X-Forwarded-For    $proxy_add_x_forwarded_for;
  13.         proxy_set_header    X-Forwarded-Host   $host;
  14.         proxy_set_header    X-Forwarded-Server $host;
  15.         proxy_set_header    X-Forwarded-Port   $server_port;
  16.         proxy_set_header    X-Forwarded-Proto  $scheme;
  17.         proxy_set_header    SSL_CLIENT_CERT    $ssl_client_cert;
  18.         proxy_pass https://keycloak:8443/realms/master/protocol/openid-connect/token;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement