Adjust a few ENV VAR names

This commit is contained in:
2026-02-12 19:42:23 -03:00
parent b3600f2a37
commit e386e5c544
3 changed files with 13 additions and 13 deletions

View File

@@ -9,10 +9,10 @@ DB_USER=roundcubemail
DB_PASSWORD= DB_PASSWORD=
# Roundcube main (IMAP/SMTP) # Roundcube main (IMAP/SMTP)
ROUNDCUBEMAIL_DEFAULT_HOST=ssl://mail.example.com ROUNDCUBEMAIL_DEFAULT_IMAP_HOST=ssl://mail.example.com
ROUNDCUBEMAIL_DEFAULT_PORT=993 ROUNDCUBEMAIL_DEFAULT_IMAP_PORT=993
ROUNDCUBEMAIL_SMTP_SERVER=ssl://mail.example.com ROUNDCUBEMAIL_DEFAULT_SMTP_SERVER=ssl://mail.example.com
ROUNDCUBEMAIL_SMTP_PORT=587 ROUNDCUBEMAIL_DEFAULT_SMTP_PORT=587
ROUNDCUBEMAIL_PLUGINS=acl,additional_message_headers,archive,attachment_reminder,autologon,debug_logger,emoticons,enigma,filesystem_attachments,help,hide_blockquote,http_authentication,identicon,identity_select,jqueryui,krb_authentication,managesieve,markasjunk,new_user_dialog,new_user_identity,newmail_notifier,password,reconnect,show_additional_headers,squirrelmail_usercopy,subscriptions_option,userinfo,vcard_attachments,virtuser_file,virtuser_query,zipdownload ROUNDCUBEMAIL_PLUGINS=acl,additional_message_headers,archive,attachment_reminder,autologon,debug_logger,emoticons,enigma,filesystem_attachments,help,hide_blockquote,http_authentication,identicon,identity_select,jqueryui,krb_authentication,managesieve,markasjunk,new_user_dialog,new_user_identity,newmail_notifier,password,reconnect,show_additional_headers,squirrelmail_usercopy,subscriptions_option,userinfo,vcard_attachments,virtuser_file,virtuser_query,zipdownload
ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE=50M ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE=50M
@@ -21,12 +21,12 @@ ROUNDCUBEMAIL_DES_KEY= # Exactly 24 characters; used
ROUNDCUBEMAIL_SUPPORT_URL=mailto:admin@example.com ROUNDCUBEMAIL_SUPPORT_URL=mailto:admin@example.com
# Plugin: managesieve (Sieve server host) # Plugin: managesieve (Sieve server host)
ROUNDCUBEMAIL_MANAGESIEVE_HOST=tls://mail.example.com:4190 ROUNDCUBEMAIL_PLUGIN_MANAGESIEVE_HOST=tls://mail.example.com:4190
# Plugin: password (Postfix/mailbox DB for password changes) # Plugin: password (Postfix/mailbox DB for password changes)
ROUNDCUBEMAIL_PASSWORD_DB_USER= ROUNDCUBEMAIL_PLUGIN_PASSWORD_DB_USER=
ROUNDCUBEMAIL_PASSWORD_DB_PASSWORD= ROUNDCUBEMAIL_PLUGIN_PASSWORD_DB_PASSWORD=
ROUNDCUBEMAIL_PASSWORD_DB_NAME=postfix ROUNDCUBEMAIL_PLUGIN_PASSWORD_DB_NAME=postfix
# Optional: pin image tag (default: latest) # Optional: pin image tag (default: latest)
# IMAGE_TAG=latest # IMAGE_TAG=latest

View File

@@ -10,8 +10,8 @@
// function, with 4190 as a fallback. // function, with 4190 as a fallback.
// Note: Add tls:// prefix to enable explicit STARTTLS // Note: Add tls:// prefix to enable explicit STARTTLS
// or add ssl:// prefix to enable implicit SSL. // or add ssl:// prefix to enable implicit SSL.
// From env ROUNDCUBEMAIL_MANAGESIEVE_PLUGIN_HOST (e.g. tls://mail.example.com:4190) // From env ROUNDCUBEMAIL_PLUGIN_MANAGESIEVE_HOST (e.g. tls://mail.example.com:4190)
$managesieveHost = getenv('ROUNDCUBEMAIL_MANAGESIEVE_PLUGIN_HOST'); $managesieveHost = getenv('ROUNDCUBEMAIL_PLUGIN_MANAGESIEVE_HOST');
$config['managesieve_host'] = ($managesieveHost !== false && $managesieveHost !== '') ? $managesieveHost : 'localhost'; $config['managesieve_host'] = ($managesieveHost !== false && $managesieveHost !== '') ? $managesieveHost : 'localhost';
// authentication method. Can be CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN, EXTERNAL // authentication method. Can be CRAM-MD5, DIGEST-MD5, PLAIN, LOGIN, EXTERNAL

View File

@@ -118,9 +118,9 @@ $config['password_http_client'] = [];
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part) // %z - IMAP domain (IMAP hostname without the first part)
// Built from env: ROUNDCUBEMAIL_PASSWORD_DB_USER, ROUNDCUBEMAIL_PASSWORD_DB_PASSWORD, ROUNDCUBEMAIL_PASSWORD_DB_NAME // Built from env: ROUNDCUBEMAIL_PASSWORD_DB_USER, ROUNDCUBEMAIL_PASSWORD_DB_PASSWORD, ROUNDCUBEMAIL_PASSWORD_DB_NAME
$pwDbUser = getenv('ROUNDCUBEMAIL_PASSWORD_PLUGIN_DB_USER'); $pwDbUser = getenv('ROUNDCUBEMAIL_PLUGIN_PASSWORD_DB_USER');
$pwDbPass = getenv('ROUNDCUBEMAIL_PASSWORD_PLUGIN_DB_PASSWORD'); $pwDbPass = getenv('ROUNDCUBEMAIL_PLUGIN_PASSWORD_DB_PASSWORD');
$pwDbName = getenv('ROUNDCUBEMAIL_PASSWORD_PLUGIN_DB_NAME') ?: 'postfix'; $pwDbName = getenv('ROUNDCUBEMAIL_PLUGIN_PASSWORD_DB_NAME') ?: 'postfix';
if ($pwDbUser !== false && $pwDbUser !== '' && $pwDbPass !== false) { if ($pwDbUser !== false && $pwDbUser !== '' && $pwDbPass !== false) {
$config['password_db_dsn'] = 'mysql://' . $pwDbUser . ':' . rawurlencode($pwDbPass) . '@unix(/var/run/mysqld/mysqld.sock)/' . $pwDbName; $config['password_db_dsn'] = 'mysql://' . $pwDbUser . ':' . rawurlencode($pwDbPass) . '@unix(/var/run/mysqld/mysqld.sock)/' . $pwDbName;
} }