mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-09 09:56:22 +00:00
Trying to setup with debugging in visual studio
This commit is contained in:
parent
79ae1458f9
commit
8cbd103532
6 changed files with 37 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
||||||
FROM nginx
|
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/
|
|
@ -1,7 +1,7 @@
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
ssl_certificate /tmp/dev.local.crt;
|
ssl_certificate ${SSL_CERT};
|
||||||
ssl_certificate_key /tmp/dev.local.key;
|
ssl_certificate_key ${SSL_KEY};
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_protocol_addr;
|
proxy_set_header X-Forwarded-For $proxy_protocol_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
@ -12,10 +12,10 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
location /auth {
|
location /auth {
|
||||||
proxy_pass http://keycloak:8080;
|
proxy_pass ${KEYCLOAK_URI};
|
||||||
}
|
}
|
||||||
|
|
||||||
location /steam {
|
location /steam {
|
||||||
proxy_pass http://steamidp:80;
|
proxy_pass ${STEAMIDP_URI};
|
||||||
}
|
}
|
||||||
}
|
}
|
7
docker-compose.debug.yml
Normal file
7
docker-compose.debug.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
proxy:
|
||||||
|
environment:
|
||||||
|
STEAMIDP_URI: https://steamidp-debugger:5001
|
||||||
|
extra_hosts:
|
||||||
|
- "steamidp-debugger:host-gateway"
|
14
docker-compose.secrets.yml.template
Normal file
14
docker-compose.secrets.yml.template
Normal 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>
|
|
@ -7,6 +7,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Hosting": {
|
"Hosting": {
|
||||||
"PathBase": "/test"
|
"PathBase": "/steam"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,10 @@
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*",
|
"AllowedHosts": "*",
|
||||||
"OpenID": {
|
"OpenID": {
|
||||||
"ClientID": "proxy",
|
"ClientID": "keycloak",
|
||||||
"ClientSecret": "secret",
|
"ClientSecret": "keycloak",
|
||||||
"RedirectUri": "http://localhost:8080/auth/realms/dev/broker/steam-dev/endpoint",
|
"ClientName": "keycloak",
|
||||||
|
"RedirectUri": "https://dev.local/auth/realms/dev/broker/steam/endpoint",
|
||||||
"PostLogoutRedirectUri": ""
|
"PostLogoutRedirectUri": ""
|
||||||
},
|
},
|
||||||
"Hosting": {
|
"Hosting": {
|
||||||
|
|
Loading…
Reference in a new issue