File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,6 +157,36 @@ http {
157157 }
158158 }
159159
160+ server {
161+ listen 443 ssl ;
162+ listen [::]:443 ssl ;
163+
164+ server_name $SERVER_NAME_KC ;
165+
166+ location / {
167+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
168+ proxy_set_header X-Forwarded-Proto https;
169+ proxy_set_header Host $host ;
170+ proxy_pass http ://keycloak:8080 ;
171+ }
172+ }
173+
174+ server {
175+ listen 443 ssl ;
176+ listen [::]:443 ssl ;
177+
178+ server_name $SERVER_NAME_V2_AUTH ;
179+
180+ location / {
181+ proxy_set_header Host $host ;
182+ proxy_set_header X-Real-IP $remote_addr ;
183+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
184+ proxy_set_header X-Forwarded-Proto $scheme ;
185+ proxy_set_header Authorization $http_authorization ;
186+ proxy_pass http ://auth-gateway:8080 ;
187+ }
188+ }
189+
160190 server {
161191 listen 443 ssl ;
162192 listen [::]:443 ssl ;
You can’t perform that action at this time.
0 commit comments