binary1ne commited on
Commit
f9ec956
·
verified ·
1 Parent(s): 5304d72

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -15,16 +15,15 @@ WORKDIR /opt/keycloak
15
  ENV KEYCLOAK_ADMIN=admin
16
  ENV KEYCLOAK_ADMIN_PASSWORD=admin
17
 
18
- # Force HTTP, disable TLS inside container
19
- ENV KC_HTTP_ENABLED=true
20
- ENV KC_HTTPS_ENABLED=false
21
-
22
  # Expose Hugging Face port
23
  EXPOSE 7860
24
 
25
  ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", \
 
 
26
  "--http-port=7860", \
 
27
  "--hostname-strict=false", \
28
- "--proxy-headers=xforwarded", \
29
- "--http-enabled=true", \
30
- "--https-enabled=false"]
 
15
  ENV KEYCLOAK_ADMIN=admin
16
  ENV KEYCLOAK_ADMIN_PASSWORD=admin
17
 
 
 
 
 
18
  # Expose Hugging Face port
19
  EXPOSE 7860
20
 
21
  ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", \
22
+ "--http-enabled=true",\
23
+ "--http-host=0.0.0.0", \
24
  "--http-port=7860", \
25
+ "--metrics-enabled=true",\
26
  "--hostname-strict=false", \
27
+ "--proxy-headers=xforwarded",\
28
+ "--proxy-protocol-enabled=true",\
29
+ "--proxy-trusted-addresses=0.0.0.0,localhost"]