forked from cerc-io/stack-orchestrator
Update keycloak to include X-User-Id header. (#147)
This commit is contained in:
parent
5b9b259494
commit
65cdba7705
@ -20,17 +20,20 @@ server {
|
|||||||
proxy_pass http://fixturenet-eth-geth-1:8545;
|
proxy_pass http://fixturenet-eth-geth-1:8545;
|
||||||
}
|
}
|
||||||
|
|
||||||
### ipld-eth-server
|
## ipld-eth-server
|
||||||
# location ~ ^/ipld/eth/([^/]*)$ {
|
location ~ ^/ipld/eth/([^/]*)$ {
|
||||||
# set $apiKey $1;
|
set $apiKey $1;
|
||||||
# if ($apiKey = '') {
|
if ($apiKey = '') {
|
||||||
# set $apiKey $http_X_API_KEY;
|
set $apiKey $http_X_API_KEY;
|
||||||
# }
|
}
|
||||||
# auth_request /auth;
|
auth_request /auth;
|
||||||
# proxy_buffering off;
|
auth_request_set $user_id $sent_http_x_user_id;
|
||||||
# rewrite /.*$ / break;
|
proxy_buffering off;
|
||||||
# proxy_pass http://ipld-eth-server:8081;
|
rewrite /.*$ / break;
|
||||||
# }
|
proxy_pass http://ipld-eth-server:8081;
|
||||||
|
proxy_set_header X-Original-Remote-Addr $remote_addr;
|
||||||
|
proxy_set_header X-User-Id $user_id;
|
||||||
|
}
|
||||||
#
|
#
|
||||||
# location ~ ^/ipld/gql/([^/]*)$ {
|
# location ~ ^/ipld/gql/([^/]*)$ {
|
||||||
# set $apiKey $1;
|
# set $apiKey $1;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM quay.io/keycloak/keycloak:20.0
|
FROM quay.io/keycloak/keycloak:20.0
|
||||||
WORKDIR /opt/keycloak/providers
|
WORKDIR /opt/keycloak/providers
|
||||||
RUN curl -L https://github.com/aerogear/keycloak-metrics-spi/releases/download/2.5.3/keycloak-metrics-spi-2.5.3.jar --output keycloak-metrics-spi.jar
|
RUN curl -L https://github.com/aerogear/keycloak-metrics-spi/releases/download/2.5.3/keycloak-metrics-spi-2.5.3.jar --output keycloak-metrics-spi.jar
|
||||||
RUN curl -L https://github.com/cerc-io/keycloak-api-key-demo/releases/download/v0.1/api-key-module-0.1.jar --output api-key-module.jar
|
RUN curl -L https://github.com/cerc-io/keycloak-api-key-demo/releases/download/v0.2/api-key-module-0.2.jar --output api-key-module.jar
|
||||||
|
Loading…
Reference in New Issue
Block a user