Commit 1e11ab058b59e2aa8d60e4ed957736979c3799e0

Authored by George Vlahavas
1 parent e228dd798a

Add keycloak variables

Showing 4 changed files with 21 additions and 1 deletions

api/.env.example View file @ 1e11ab0
... ... @@ -42,7 +42,7 @@
42 42 OD_HOST=od
43 43 OD_PORT=9091
44 44  
45   -KEYCLOAK_REALM_PUBLIC_KEY=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlP2vlb7nX+mOejTfuYOmD49FgOzQGZjIagb68Bci44hUvjfY9Mmbz9OhWVuhz5UyLScHrdOByI234yVjqAtOtSYQ0Wb/U0Ukt7ele9TCkQ4GVv92vpvW9Q2YcPVmJGHXtvmoNIQEnht9Sbfhcg8dmjO5c5766gnFgY6vh6cb2/1ECw7w9jloQ8zWT/6YRXJ7MTbE3d9t0c2Oyrnf5XmKsq9eyLea57tbX94/Aj0+i7br/bS40z/lAjNx2umrcgk/y1BmUMvNqQtf9rgz7I3aRro8n8HWwE7VkQN2W2YxhYvWwvJf75kN3oASTzZibJjpsFw/DBrm0Cf79XqoU77npQIDAQAB
  45 +KEYCLOAK_REALM_PUBLIC_KEY=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg9OruW+gRnBcm4S1da+TDj7LdDXTFykExlg2z5Fx/vv4ldJf1/vCAEdSP/HZXRMq5TRefnkzVyv66COmjyPjGNB2P240HOOzBPnU5ibsu7H2betZvR+uj/y9o5T3hUpPy+Gbb02i57xoKyECy+yRtPjmF63R0rFfFBV/LdScWdnltTY7YfmRe6dRcBZG5QZ8bKTWP40QUzwG2PnJpIEi3KdYp4qDx4LvXnSvIC0Z6E59R2oialMKQtPO5Xu9Ea6fYe4guqX9zdpoC+bcvxjJ275zj+RoFVaQHhGBZDPeK4VITmXiUWkBbTGQwEVY8ZY4b62kWFwjOg9yOv47s6N7cQIDAQAB
46 46 KEYCLOAK_LOAD_USER_FROM_DATABASE=false
47 47 KEYCLOAK_USER_PROVIDER_CREDENTIAL=name
48 48 KEYCLOAK_TOKEN_PRINCIPAL_ATTRIBUTE=preferred_username
docker-compose-hetzner.yml View file @ 1e11ab0
... ... @@ -123,6 +123,13 @@
123 123 - "MLTD_PORT=${MLTD_PORT}"
124 124 - "OD_HOST=${OD_HOST}"
125 125 - "OD_PORT=${OD_PORT}"
  126 + - "KEYCLOAK_REALM_PUBLIC_KEY=${KEYCLOAK_REALM_PUBLIC_KEY}"
  127 + - "KEYCLOAK_LOAD_USER_FROM_DATABASE=${KEYCLOAK_LOAD_USER_FROM_DATABASE}"
  128 + - "KEYCLOAK_USER_PROVIDER_CREDENTIAL=${KEYCLOAK_USER_PROVIDER_CREDENTIAL}"
  129 + - "KEYCLOAK_TOKEN_PRINCIPAL_ATTRIBUTE=${KEYCLOAK_TOKEN_PRINCIPAL_ATTRIBUTE}"
  130 + - "KEYCLOAK_APPEND_DECODED_TOKEN=${KEYCLOAK_APPEND_DECODED_TOKEN}"
  131 + - "KEYCLOAK_ALLOWED_RESOURCES=${KEYCLOAK_ALLOWED_RESOURCES}"
  132 + - "AUTH_ENABLED=${AUTH_ENABLED}"
126 133 networks:
127 134 - "proxy-network"
128 135  
docker-compose-jfrog.yml View file @ 1e11ab0
... ... @@ -109,6 +109,12 @@
109 109 - "MLTD_PORT=${MLTD_PORT}"
110 110 - "OD_HOST=${OD_HOST}"
111 111 - "OD_PORT=${OD_PORT}"
  112 + - "KEYCLOAK_REALM_PUBLIC_KEY=${KEYCLOAK_REALM_PUBLIC_KEY}"
  113 + - "KEYCLOAK_LOAD_USER_FROM_DATABASE=${KEYCLOAK_LOAD_USER_FROM_DATABASE}"
  114 + - "KEYCLOAK_USER_PROVIDER_CREDENTIAL=${KEYCLOAK_USER_PROVIDER_CREDENTIAL}"
  115 + - "KEYCLOAK_TOKEN_PRINCIPAL_ATTRIBUTE=${KEYCLOAK_TOKEN_PRINCIPAL_ATTRIBUTE}"
  116 + - "KEYCLOAK_APPEND_DECODED_TOKEN=${KEYCLOAK_APPEND_DECODED_TOKEN}"
  117 + - "KEYCLOAK_ALLOWED_RESOURCES=${KEYCLOAK_ALLOWED_RESOURCES}"
112 118 - "AUTH_ENABLED=${AUTH_ENABLED}"
113 119  
114 120 #OD
hetzner_deploy.groovy View file @ 1e11ab0
... ... @@ -59,6 +59,13 @@
59 59 OD_HOST = "od"
60 60 OD_PORT = "9091"
61 61  
  62 + KEYCLOAK_REALM_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAg9OruW+gRnBcm4S1da+TDj7LdDXTFykExlg2z5Fx/vv4ldJf1/vCAEdSP/HZXRMq5TRefnkzVyv66COmjyPjGNB2P240HOOzBPnU5ibsu7H2betZvR+uj/y9o5T3hUpPy+Gbb02i57xoKyECy+yRtPjmF63R0rFfFBV/LdScWdnltTY7YfmRe6dRcBZG5QZ8bKTWP40QUzwG2PnJpIEi3KdYp4qDx4LvXnSvIC0Z6E59R2oialMKQtPO5Xu9Ea6fYe4guqX9zdpoC+bcvxjJ275zj+RoFVaQHhGBZDPeK4VITmXiUWkBbTGQwEVY8ZY4b62kWFwjOg9yOv47s6N7cQIDAQAB"
  63 + KEYCLOAK_LOAD_USER_FROM_DATABASE = "false"
  64 + KEYCLOAK_USER_PROVIDER_CREDENTIAL = "name"
  65 + KEYCLOAK_TOKEN_PRINCIPAL_ATTRIBUTE = "preferred_username"
  66 + KEYCLOAK_APPEND_DECODED_TOKEN = "false"
  67 + KEYCLOAK_ALLOWED_RESOURCES = "account"
  68 +
62 69 AUTH_ENABLED = "false"
63 70 }
64 71