feat: do not use default admin pw

This commit is contained in:
Michael Barz
2025-06-18 09:39:08 +02:00
parent 4ecd436580
commit 278b58e683
3 changed files with 15 additions and 5 deletions

View File

@@ -59,8 +59,6 @@ OC_DOCKER_TAG=
# Domain of openCloud, where you can find the frontend. # Domain of openCloud, where you can find the frontend.
# Defaults to "cloud.opencloud.test" # Defaults to "cloud.opencloud.test"
OC_DOMAIN= OC_DOMAIN=
# openCloud admin user password. Defaults to "admin".
ADMIN_PASSWORD=
# Demo users should not be created on a production instance, # Demo users should not be created on a production instance,
# because their passwords are public. Defaults to "false". # because their passwords are public. Defaults to "false".
# If demo users is set to "true", the following user accounts are created automatically: # If demo users is set to "true", the following user accounts are created automatically:
@@ -81,6 +79,21 @@ LOG_LEVEL=
# Leaving it default stores data in docker internal volumes. # Leaving it default stores data in docker internal volumes.
# OC_CONFIG_DIR=/your/local/opencloud/config # OC_CONFIG_DIR=/your/local/opencloud/config
# OC_DATA_DIR=/your/local/opencloud/data # OC_DATA_DIR=/your/local/opencloud/data
# OpenCloud Web can load extensions from a local directory.
# The default uses the bind mount to the config/opencloud/apps directory.
# Example: curl -L https://github.com/opencloud-eu/web-extensions/releases/download/unzip-v1.0.2/unzip-1.0.2.zip | tar -xz -C config/opencloud/apps
# NOTE: you need to restart the openCloud container to load the new extensions.
# OC_APPS_DIR=/your/local/opencloud/apps
## OpenCloud Admin Password ##
# The password for the OpenCloud admin user.
# The admin user password is randomly generated on the first start of OpenCloud.
# It will be printed to the console. You can access it by running the following command:
# `docker compose logs opencloud | grep -B 1 -A 4 "generated OpenCloud Config"`
# The password is stored in the OpenCloud configuration file.
# It can only be changed via the OpenCloud User Settings UI or by using the OpenCloud CLI.
# https://docs.opencloud.eu/docs/admin/resources/common-issues#-change-admin-password-set-in-env
# S3 Storage configuration - optional # S3 Storage configuration - optional
# OpenCloud supports S3 storage as primary storage. # OpenCloud supports S3 storage as primary storage.

View File

@@ -219,7 +219,6 @@ Key variables:
| `COMPOSE_FILE` | Colon-separated list of compose files to use | (commented out) | | `COMPOSE_FILE` | Colon-separated list of compose files to use | (commented out) |
| `OC_DOMAIN` | OpenCloud domain | cloud.opencloud.test | | `OC_DOMAIN` | OpenCloud domain | cloud.opencloud.test |
| `OC_DOCKER_TAG` | OpenCloud image tag | latest | | `OC_DOCKER_TAG` | OpenCloud image tag | latest |
| `ADMIN_PASSWORD` | Admin password | admin |
| `OC_CONFIG_DIR` | Config directory path | (Docker volume) | | `OC_CONFIG_DIR` | Config directory path | (Docker volume) |
| `OC_DATA_DIR` | Data directory path | (Docker volume) | | `OC_DATA_DIR` | Data directory path | (Docker volume) |
| `INSECURE` | Skip certificate validation | true | | `INSECURE` | Skip certificate validation | true |

View File

@@ -25,8 +25,6 @@ services:
OC_INSECURE: "${INSECURE:-false}" OC_INSECURE: "${INSECURE:-false}"
# basic auth (not recommended, but needed for eg. WebDav clients that do not support OpenID Connect) # basic auth (not recommended, but needed for eg. WebDav clients that do not support OpenID Connect)
PROXY_ENABLE_BASIC_AUTH: "${PROXY_ENABLE_BASIC_AUTH:-false}" PROXY_ENABLE_BASIC_AUTH: "${PROXY_ENABLE_BASIC_AUTH:-false}"
# admin user password
IDM_ADMIN_PASSWORD: "${ADMIN_PASSWORD:-admin}" # this overrides the admin password from the configuration file
# demo users # demo users
IDM_CREATE_DEMO_USERS: "${DEMO_USERS:-false}" IDM_CREATE_DEMO_USERS: "${DEMO_USERS:-false}"
# email server (if configured) # email server (if configured)