docker-mailserver/target/scripts
Brennan Kinney bdb35dd19a
chore: Refactor setup-stack.sh case SSL_TYPE=letsencrypt (#2278)
Mostly cleans up the code and documents it better, although there are some minor fixes for handling `SSL_DOMAIN` ENV and additional logging added for spotting issues related to it in future when troubleshooting.

Commits are scoped with context messages for easing review if necessary. Overview of changes:

Traefik specific:

- Logic extracted out into it's own function.
- Conditional reworked to assist with debugging.
- `SSL_DOMAIN` must not be empty when attempting to extract.
- Added additional notes.

`SSL_TYPE=letsencrypt` case:

- Revised top note block.
- Correct handling for `SSL_DOMAIN`.
- Removed some unnecessary nesting.
- Less repetitive error message for `LETSENCRYPT_DOMAIN`.
- Added use of panics where appropriate (kept `return 1` so failures still exit functionality early).
- Improved inline docs.
2021-11-03 09:12:33 +13:00
..
startup chore: Refactor setup-stack.sh case SSL_TYPE=letsencrypt (#2278) 2021-11-03 09:12:33 +13:00
check-for-changes.sh Fix weird dashes (#2205) 2021-09-22 08:41:32 +02:00
fail2ban-wrapper.sh Final Migration Step (#6) 2021-01-16 10:16:05 +01:00
helper-functions.sh fix: Make Dovecot aware of basic aliases in userdb for quota support + Use correct hash scheme in passdb configuration (#2248) 2021-11-01 14:20:22 +13:00
postfix-wrapper.sh setup.sh: docker_container first, then fall back to docker_image (#2134) 2021-09-06 10:13:12 +00:00
postsrsd-wrapper.sh HOSTNAME and DOMAINNAME setting improvements (#2175) 2021-09-12 02:20:16 +12:00
quota-warning.sh Final Migration Step (#6) 2021-01-16 10:16:05 +01:00
start-mailserver.sh Add missing SA variables (#2283) 2021-11-02 11:51:36 +01:00
update-check.sh Update check (#1951) 2021-05-19 21:18:06 +02:00