diff options
author | Alberto Bursi <alberto.bursi@outlook.it> | 2023-10-28 02:03:56 +0200 |
---|---|---|
committer | Alberto Bursi <alberto.bursi@outlook.it> | 2023-10-28 02:25:29 +0200 |
commit | 6074d52152dfaf1110e71b8bdfddd07bd56083f0 (patch) | |
tree | e844aa9587fbdb99e351adc040efc42e399c6173 /adddomain.sh | |
parent | bb349334e899de4437655c3e2bdc9ce5c7dd08c5 (diff) |
now it can make self-signed certs, turn some settings into options
-- the change to the apt-get install part at the beginning forces an uninstall and purge of configs. This means that if you re-run the script it will "reset" the install to default state by deleting packages and configs and re-installing and re-generating the configs.
--I turned some hardcoded settings into options that can be set in the variables at the top of the script (for convenience). The default behavior is the same as before.
allow_suboptimal_ciphers="yes" #yes no
mailbox_format="maildir" # maildir sdbox
allowed_protocols=" imap pop3 " #imap pop3
--added a setting "selfsigned="no" # yes no" to choose between "let's get a cert from letsencrypt" and "create self-signed cert that lasts 100 years", and added the logic to generate the certs and whatnot.
My usecase is for an "isolated" server that collects notifications from devices in the same local network(s) or serves as secure/private messaging system over VPN (wireguard or whatever).
The default is still as before. If creating a self-signed cert is selected, it will show the certificate creation wizard as normal.
--added a few setting variables to auto-generate the certificate with country name, state/province name, organization name and hostname
Again this is not enabled by default.
Diffstat (limited to 'adddomain.sh')
0 files changed, 0 insertions, 0 deletions