Skip to content

Commit 1cb22b3

Browse files
committed
Testing config
1 parent fe3ecb5 commit 1cb22b3

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

nginx.conf

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)