With this commit multisite now also works with subpaths instead of subdomains. It also simpified the multisite deployment in generall by adding a new MULTISITE environment variable. Depending on its value WORDPRESS_CONFIG_EXTRA gets set in the entrypoint. And the correct .htaccess gets deployed. Closes #34 I am still new to coopcloud and welcome feedback on my approach. The second commit is not required for #34 so I can remove it again. Reviewed-on: https://git.coopcloud.tech/coop-cloud/wordpress/pulls/35 Co-authored-by: p4u1 <p4u1_f4u1@riseup.net> Co-committed-by: p4u1 <p4u1_f4u1@riseup.net>
70 lines
1.9 KiB
Bash
70 lines
1.9 KiB
Bash
TYPE=wordpress
|
|
TIMEOUT=300
|
|
ENABLE_AUTO_UPDATE=true
|
|
COMPOSE_FILE="compose.yml"
|
|
|
|
DOMAIN=wordpress.example.com
|
|
## Domain aliases
|
|
#EXTRA_DOMAINS=', `www.wordpress.example.com`'
|
|
LETS_ENCRYPT_ENV=production
|
|
|
|
# Setup Wordpress settings on each deploy:
|
|
#POST_DEPLOY_CMDS="app core_install"
|
|
|
|
# Optional settings, otherwise can be set in the installer
|
|
# (Required for `app core_install`
|
|
#TITLE="My Example Blog"
|
|
#LOCALE="en_US" # de_DE
|
|
#ADMIN_EMAIL=admin@example.com
|
|
|
|
# Every new user is per default subscriber, uncomment to change it
|
|
#DEFAULT_USER_ROLE=administrator
|
|
|
|
# PHP composer for plugin installation
|
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.composer.yml"
|
|
|
|
#WORDPRESS_DEBUG=true
|
|
|
|
## Additional extensions
|
|
#PHP_EXTENSIONS="calendar"
|
|
|
|
SECRET_DB_ROOT_PASSWORD_VERSION=v1
|
|
SECRET_DB_PASSWORD_VERSION=v1
|
|
|
|
# Mostly for compatibility with existing database dumps...
|
|
#WORDPRESS_TABLE_PREFIX=wp_
|
|
|
|
# Multisite (see README)
|
|
#MULTISITE=enable # either 'enable', 'subdomain' or 'subfolder'
|
|
|
|
# Local SMTP relay
|
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.mailrelay.yml"
|
|
#SMTP_HOST="postfix_relay_app"
|
|
#MAIL_FROM="wordpress@example.com"
|
|
|
|
# Remote SMTP relay
|
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.mailrelay.yml:compose.smtp.yml"
|
|
#SMTP_HOST="mail.example.com"
|
|
#MAIL_FROM="wordpress@example.com"
|
|
#SMTP_USER="wordpress@example.com" # optional, defaults to MAIL_FROM
|
|
#SMTP_OVERRIDE_FROM=on # force "From" to MAIL_FROM, usually necessary
|
|
#SMTP_PORT=587
|
|
#SMTP_AUTH=on
|
|
#SMTP_TLS=on
|
|
#SECRET_SMTP_PASSWORD_VERSION=v1
|
|
|
|
# Authentik SSO
|
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.authentik.yml"
|
|
#AUTHENTIK_DOMAIN=authentik.example.com
|
|
#SECRET_AUTHENTIK_SECRET_VERSION=v1
|
|
#SECRET_AUTHENTIK_ID_VERSION=v1
|
|
#LOGIN_TYPE='auto'
|
|
|
|
# Allow remote connections to db
|
|
# 🚩🚩 dangerous, use only for development sites!
|
|
#COMPOSE_FILE="$COMPOSE_FILE:compose.public-db.yml
|
|
|
|
# Wide-open CORS
|
|
# 🚩🚩 dangerous, use only for development sites!
|
|
#CORS_ALLOW_ALL=1
|