Trying to setup with debugging in visual studio

This commit is contained in:
Mark Ettema 2021-05-17 08:34:14 +07:00
parent 79ae1458f9
commit 8cbd103532
6 changed files with 37 additions and 9 deletions

View file

@ -1,3 +1,9 @@
FROM nginx
ADD ./proxy_ssl.conf /etc/nginx/conf.d/proxy_ssl.conf
ENV SSL_CERT=/tmp/dev.local.crt
ENV SSL_KEY=/tmp/dev.local.key
ENV KEYCLOAK_URI=http://keycloak:8080
ENV STEAMIDP_URI=http://steamidp:80
ADD ./proxy_ssl.conf.template /etc/nginx/templates/

View file

@ -1,7 +1,7 @@
server {
listen 443 ssl;
ssl_certificate /tmp/dev.local.crt;
ssl_certificate_key /tmp/dev.local.key;
ssl_certificate ${SSL_CERT};
ssl_certificate_key ${SSL_KEY};
proxy_set_header X-Forwarded-For $proxy_protocol_addr;
proxy_set_header X-Forwarded-Proto $scheme;
@ -12,10 +12,10 @@ server {
}
location /auth {
proxy_pass http://keycloak:8080;
proxy_pass ${KEYCLOAK_URI};
}
location /steam {
proxy_pass http://steamidp:80;
proxy_pass ${STEAMIDP_URI};
}
}

7
docker-compose.debug.yml Normal file
View file

@ -0,0 +1,7 @@
version: '2'
services:
proxy:
environment:
STEAMIDP_URI: https://steamidp-debugger:5001
extra_hosts:
- "steamidp-debugger:host-gateway"

View file

@ -0,0 +1,14 @@
version: '2'
services:
proxy:
volumes:
- "<local-path>/dev.local.crt:/tmp/dev.local.crt"
- "<local-path>/dev.local.key:/tmp/dev.local.key"
keycloak:
volumes:
- "<local-path>/dev.local.crt:/tmp/dev.local.crt"
steamidp:
environment:
Steam__ApplicationKey: <steam-app-key>

View file

@ -7,6 +7,6 @@
}
},
"Hosting": {
"PathBase": "/test"
"PathBase": "/steam"
}
}

View file

@ -6,9 +6,10 @@
},
"AllowedHosts": "*",
"OpenID": {
"ClientID": "proxy",
"ClientSecret": "secret",
"RedirectUri": "http://localhost:8080/auth/realms/dev/broker/steam-dev/endpoint",
"ClientID": "keycloak",
"ClientSecret": "keycloak",
"ClientName": "keycloak",
"RedirectUri": "https://dev.local/auth/realms/dev/broker/steam/endpoint",
"PostLogoutRedirectUri": ""
},
"Hosting": {