Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Keycloak configuration #10

Merged
merged 3 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions http-client.env.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"dev": {
"issuer_authorizationServer": "https://localhost/realms/pid-issuer-realm",
"token_endpoint": "https://localhost/realms/pid-issuer-realm/protocol/openid-connect/token",
"userinfo_endpoint": "https://localhost/realms/pid-issuer-realm/protocol/openid-connect/userinfo",
"issuer_authorizationServer": "https://localhost/idp/realms/pid-issuer-realm",
"token_endpoint": "https://localhost/idp/realms/pid-issuer-realm/protocol/openid-connect/token",
"userinfo_endpoint": "https://localhost/idp/realms/pid-issuer-realm/protocol/openid-connect/userinfo",
"issuer_publicUrl": "http://localhost:8080",
"credential_endpoint": "http://localhost:8080/wallet/credentialEndpoint",
"request_scope": "openid eu.europa.ec.eudiw.pid_mso_mdoc eu.europa.ec.eudiw.pid_vc_sd_jwt",
Expand Down
19 changes: 0 additions & 19 deletions keycloak/README.md

This file was deleted.

5 changes: 3 additions & 2 deletions keycloak/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ services:
command:
- start-dev
- --import-realm
- --proxy=edge
- --hostname-strict=false
environment:
- KC_PROXY=edge
- KC_HTTP_RELATIVE_PATH=/idp
- KC_HOSTNAME_STRICT=false
- KC_HEALTH_ENABLED=true
- KC_METRICS_ENABLED=true
- KC_DB=postgres
Expand Down
4 changes: 2 additions & 2 deletions keycloak/haproxy/haproxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ defaults

frontend all_http_frontend
bind 0.0.0.0:80
default_backend keycloak-backend
use_backend keycloak-backend if { path_beg /idp }

frontend all_https_frontend
bind 0.0.0.0:443 ssl crt /etc/ssl/certs/localhost.tls.pem
default_backend keycloak-backend
use_backend keycloak-backend if { path_beg /idp }

backend keycloak-backend
balance roundrobin
Expand Down
2 changes: 1 addition & 1 deletion keycloak/keycloak-extra/health-check.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
exec 3<>/dev/tcp/localhost/8080

echo -e "GET /health/ready HTTP/1.1\nhost: localhost:8080\n" >&3
echo -e "GET ${KC_HTTP_RELATIVE_PATH}/health/ready HTTP/1.1\nhost: localhost:8080\n" >&3

timeout --preserve-status 1 cat <&3 | grep -m 1 status | grep -m 1 UP
ERROR=$?
Expand Down
Loading
Loading