From c8206c96d2f1955ee62bed779559ecb6f090e5a7 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Wed, 30 Dec 2020 13:19:32 +0200 Subject: [PATCH] =?UTF-8?q?Switch=20from=20envrc=20=E2=86=92=20env=20forma?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref coop-cloud/abra#40 --- .envrc.sample => .env.sample | 88 ++++++++++++++++++------------------ 1 file changed, 44 insertions(+), 44 deletions(-) rename .envrc.sample => .env.sample (69%) diff --git a/.envrc.sample b/.env.sample similarity index 69% rename from .envrc.sample rename to .env.sample index 0e12c27..ca68cbd 100644 --- a/.envrc.sample +++ b/.env.sample @@ -1,59 +1,59 @@ -export APP=mailu +APP=mailu # Main mail domain, NOT main web domain (if they are different) -export DOMAIN=example.com -export LETS_ENCRYPT_ENV=production +DOMAIN=example.com +LETS_ENCRYPT_ENV=production -export CERTDUMPER_POST_VERSION=v1 +CERTDUMPER_POST_VERSION=v1 # Custom settings used by certdumper_post.sh and Traefik -export WEB_DOMAIN=example.com -export ACME_JSON=${LETS_ENCRYPT_ENV}-acme.json +WEB_DOMAIN=example.com +ACME_JSON=${LETS_ENCRYPT_ENV}-acme.json # Mailu settings # https://mailu.io -export TLS_CERT_FILENAME=$WEB_DOMAIN/certificate.crt -export TLS_KEYPAIR_FILENAME=$WEB_DOMAIN/privatekey.key +TLS_CERT_FILENAME=$WEB_DOMAIN/certificate.crt +TLS_KEYPAIR_FILENAME=$WEB_DOMAIN/privatekey.key -export REDIS_ADDRESS=db +REDIS_ADDRESS=db # Set to a randomly generated 16 bytes string -export SECRET_KEY=XXXXXXXXXXXXXXXX +SECRET_KEY=XXXXXXXXXXXXXXXX # Subnet of the docker network. This should not conflict with any networks to which your system is connected. (Internal and external!) -export SUBNET=192.168.203.0/24 +SUBNET=192.168.203.0/24 # Hostnames for this server, separated with comas -export HOSTNAMES=$WEB_DOMAIN +HOSTNAMES=$WEB_DOMAIN # Postmaster local part (will append the main mail domain) -export POSTMASTER=admin +POSTMASTER=admin # Choose how secure connections will behave (value: letsencrypt, cert, notls, mail, mail-letsencrypt) -export TLS_FLAVOR=mail +TLS_FLAVOR=mail # Authentication rate limit (per source IP address) -export AUTH_RATELIMIT=10/minute +AUTH_RATELIMIT=10/minute # Opt-out of statistics, replace with "True" to opt out -export DISABLE_STATISTICS=False +DISABLE_STATISTICS=False ################################### # Optional features ################################### # Expose the admin interface (value: true, false) -export ADMIN=true +ADMIN=true # Choose which webmail to run if any (values: roundcube, rainloop, none) -export WEBMAIL=rainloop +WEBMAIL=rainloop # Dav server implementation (value: radicale, none) -export WEBDAV=none +WEBDAV=none # Antivirus solution (value: clamav, none) -export ANTIVIRUS=none +ANTIVIRUS=none ################################### # Mail settings @@ -62,36 +62,36 @@ export ANTIVIRUS=none # Message size limit in bytes # Default: accept messages up to 50MB # Max attachment size will be 33% smaller -export MESSAGE_SIZE_LIMIT=50000000 +MESSAGE_SIZE_LIMIT=50000000 # Networks granted relay permissions # Use this with care, all hosts in this networks will be able to send mail without authentication! -export RELAYNETS= +RELAYNETS= # Will relay all outgoing mails if configured -export RELAYHOST= +RELAYHOST= # Fetchmail delay -export FETCHMAIL_DELAY=600 +FETCHMAIL_DELAY=600 # Recipient delimiter, character used to delimiter localpart from custom address part -export RECIPIENT_DELIMITER=+ +RECIPIENT_DELIMITER=+ # DMARC rua and ruf email -export DMARC_RUA=admin -export DMARC_RUF=admin +DMARC_RUA=admin +DMARC_RUF=admin # Welcome email, enable and set a topic and body if you wish to send welcome # emails to all users. -export WELCOME=false -export WELCOME_SUBJECT=Welcome to your new email account -export WELCOME_BODY="Welcome to your new email account, if you can read this, then it is configured properly!" +WELCOME=false +WELCOME_SUBJECT=Welcome to your new email account +WELCOME_BODY="Welcome to your new email account, if you can read this, then it is configured properly!" # Maildir Compression # choose compression-method, default: none (value: bz2, gz) -export COMPRESSION= +COMPRESSION= # change compression-level, default: 6 (value: 1-9) -export COMPRESSION_LEVEL= +COMPRESSION_LEVEL= # IMAP full-text search is enabled by default. Set the following variable to off in order to disable the feature. # FULL_TEXT_SEARCH=off @@ -101,19 +101,19 @@ export COMPRESSION_LEVEL= ################################### # Path to redirect / to -export WEBROOT_REDIRECT=/webmail +WEBROOT_REDIRECT=/webmail # Path to the admin interface if enabled -export WEB_ADMIN=/admin +WEB_ADMIN=/admin # Path to the webmail if enabled -export WEB_WEBMAIL=/webmail +WEB_WEBMAIL=/webmail # Website name -export SITENAME=mymail +SITENAME=mymail # Linked Website URL -export WEBSITE=https://$DOMAIN +WEBSITE=https://$DOMAIN ################################### # Advanced settings @@ -126,25 +126,25 @@ export WEBSITE=https://$DOMAIN # LOG_DRIVER=json-file # Docker-compose project name, this will prepended to containers names. -export COMPOSE_PROJECT_NAME=mailu +COMPOSE_PROJECT_NAME=mailu # Default password scheme used for newly created accounts and changed passwords # (value: PBKDF2, BLF-CRYPT, SHA512-CRYPT, SHA256-CRYPT) -export PASSWORD_SCHEME=PBKDF2 +PASSWORD_SCHEME=PBKDF2 # Header to take the real ip from -export REAL_IP_HEADER= +REAL_IP_HEADER= # IPs for nginx set_real_ip_from (CIDR list separated by commas) -export REAL_IP_FROM= +REAL_IP_FROM= # choose wether mailu bounces (no) or rejects (yes) mail when recipient is unknown (value: yes, no) -export REJECT_UNLISTED_RECIPIENT= +REJECT_UNLISTED_RECIPIENT= # Log level threshold in start.py (value: CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET) -export LOG_LEVEL=WARNING +LOG_LEVEL=WARNING ################################### # Database settings ################################### -export DB_FLAVOR=sqlite +DB_FLAVOR=sqlite