Update keycloak to include X-User-Id header. (#147)

This commit was merged in pull request #147.
This commit is contained in:
2023-01-23 10:39:15 -06:00
committed by GitHub
parent 5b9b259494
commit 65cdba7705
2 changed files with 15 additions and 12 deletions
@@ -20,17 +20,20 @@ server {
proxy_pass http://fixturenet-eth-geth-1:8545;
}
### ipld-eth-server
# location ~ ^/ipld/eth/([^/]*)$ {
# set $apiKey $1;
# if ($apiKey = '') {
# set $apiKey $http_X_API_KEY;
# }
# auth_request /auth;
# proxy_buffering off;
# rewrite /.*$ / break;
# proxy_pass http://ipld-eth-server:8081;
# }
## ipld-eth-server
location ~ ^/ipld/eth/([^/]*)$ {
set $apiKey $1;
if ($apiKey = '') {
set $apiKey $http_X_API_KEY;
}
auth_request /auth;
auth_request_set $user_id $sent_http_x_user_id;
proxy_buffering off;
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/([^/]*)$ {
# set $apiKey $1;