mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-06-08 12:10:05 +08:00
Compare commits
8 Commits
add-defaul
...
update-tra
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3873623f4b | ||
|
|
de88ca037b | ||
|
|
1b4cfb5759 | ||
|
|
1a231fa807 | ||
|
|
a79de3c5ee | ||
|
|
4e8f66ac5f | ||
|
|
8ce6895188 | ||
|
|
a0d5196dfa |
@@ -59,10 +59,7 @@ TRAEFIK_SERVICES_TLS_CONFIG="tls.certresolver=letsencrypt"
|
||||
# - certFile: /certs/opencloud.test.crt
|
||||
# keyFile: /certs/opencloud.test.key
|
||||
# stores:
|
||||
# default:
|
||||
# defaultCertificate:
|
||||
# certFile: /certs/opencloud.test.crt
|
||||
# keyFile: /certs/opencloud.test.key
|
||||
# - default
|
||||
#
|
||||
# The certificates need to be copied into ./certs/, the absolute path inside the container is /certs/.
|
||||
# You can also use TRAEFIK_CERTS_DIR=/path/on/host to set the path to the certificates directory.
|
||||
@@ -325,6 +322,9 @@ KEYCLOAK_DOMAIN=
|
||||
KEYCLOAK_ADMIN=
|
||||
# Admin user login password. Defaults to "admin".
|
||||
KEYCLOAK_ADMIN_PASSWORD=
|
||||
# Configure the log level for Keycloak.
|
||||
# Possible values are "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL" and "OFF". Default is "INFO".
|
||||
KC_LOG_LEVEL=
|
||||
# Keycloak Database username. Defaults to "keycloak".
|
||||
KC_DB_USERNAME=
|
||||
# Keycloak Database password. Defaults to "keycloak".
|
||||
|
||||
@@ -285,10 +285,6 @@ OpenCloud Compose supports adding SSL certificates for public domains and develo
|
||||
keyFile: /certs/opencloud.test.key
|
||||
stores:
|
||||
- default
|
||||
- certFile: /certs/wildcard.example.com.crt
|
||||
keyFile: /certs/wildcard.example.com.key
|
||||
stores:
|
||||
- default
|
||||
```
|
||||
|
||||
3. **Configure environment variables**:
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
printenv
|
||||
# print env variables for trace/debug log levels
|
||||
log_level=$(printf '%s' "$KC_LOG_LEVEL" | tr '[:upper:]' '[:lower:]')
|
||||
case "$log_level" in trace|debug) printenv ;; *) ;; esac
|
||||
|
||||
# replace openCloud domain and LDAP password in keycloak realm import
|
||||
mkdir /opt/keycloak/data/import
|
||||
sed -e "s/cloud.opencloud.test/${OC_DOMAIN}/g" -e "s/ldap-admin-password/${LDAP_ADMIN_PASSWORD:-admin}/g" /opt/keycloak/data/import-dist/openCloud-realm.json > /opt/keycloak/data/import/openCloud-realm.json
|
||||
|
||||
@@ -23,14 +23,6 @@ add_arg "--entryPoints.https.address=:${TRAEFIK_PORT_HTTPS:-443}"
|
||||
add_arg "--entryPoints.https.transport.respondingTimeouts.readTimeout=12h"
|
||||
add_arg "--entryPoints.https.transport.respondingTimeouts.writeTimeout=12h"
|
||||
add_arg "--entryPoints.https.transport.respondingTimeouts.idleTimeout=3m"
|
||||
# allow encoded characters
|
||||
# required for WOPI/Collabora
|
||||
add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedSlash=true"
|
||||
add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedQuestionMark=true"
|
||||
add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedPercent=true"
|
||||
# required for file operations with supported encoded characters
|
||||
add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedSemicolon=true"
|
||||
add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedHash=true"
|
||||
# docker provider (get configuration from container labels)
|
||||
add_arg "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||
add_arg "--providers.docker.exposedByDefault=false"
|
||||
|
||||
@@ -96,6 +96,7 @@ services:
|
||||
KC_DB_USERNAME: ${KC_DB_USERNAME:-keycloak}
|
||||
KC_DB_PASSWORD: ${KC_DB_PASSWORD:-keycloak}
|
||||
KC_FEATURES: impersonation
|
||||
KC_LOG_LEVEL: ${KC_LOG_LEVEL:-INFO}
|
||||
KC_PROXY_HEADERS: xforwarded
|
||||
KC_HTTP_ENABLED: true
|
||||
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN:-kcadmin}
|
||||
|
||||
@@ -32,6 +32,7 @@ services:
|
||||
KC_DB_USERNAME: ${KC_DB_USERNAME:-keycloak}
|
||||
KC_DB_PASSWORD: ${KC_DB_PASSWORD:-keycloak}
|
||||
KC_FEATURES: impersonation
|
||||
KC_LOG_LEVEL: ${KC_LOG_LEVEL:-INFO}
|
||||
KC_PROXY_HEADERS: xforwarded
|
||||
KC_HTTP_ENABLED: true
|
||||
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN:-kcadmin}
|
||||
|
||||
@@ -9,7 +9,7 @@ services:
|
||||
- "traefik.http.services.opencloud.loadbalancer.server.port=9200"
|
||||
- "traefik.http.routers.opencloud.${TRAEFIK_SERVICES_TLS_CONFIG}"
|
||||
traefik:
|
||||
image: traefik:v3.6.4
|
||||
image: traefik:v3.6.7
|
||||
# release notes: https://github.com/traefik/traefik/releases
|
||||
user: ${TRAEFIK_CONTAINER_UID_GID:-0:0}
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user