|
|
|
@ -58,6 +58,7 @@ function import_files_etc_sympa { |
|
|
|
mv etc/sympa/data_structure.version /etc/sympa/ |
|
|
|
|
|
|
|
replace_conf_entry_from_export domain |
|
|
|
replace_conf_entry_from_export wwsympa_url |
|
|
|
replace_conf_entry_from_export listmaster |
|
|
|
replace_conf_entry_from_export lang |
|
|
|
} |
|
|
|
@ -94,6 +95,9 @@ function import_files { |
|
|
|
} |
|
|
|
|
|
|
|
function import_certbot { |
|
|
|
|
|
|
|
local sympa_domain=$(grep '^domain' /etc/sympa/sympa/sympa.conf | cut -f2) |
|
|
|
|
|
|
|
if [[ -f "$export_tmp/certbot.tar" ]]; then |
|
|
|
echo -n "import certbot..." |
|
|
|
rm -rf /etc/letsencrypt |
|
|
|
@ -151,11 +155,11 @@ server { |
|
|
|
} |
|
|
|
|
|
|
|
server { |
|
|
|
listen 443; |
|
|
|
server_name _; |
|
|
|
listen 443 ssl; |
|
|
|
server_name $sympa_domain; |
|
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/\$host/fullchain.pem; |
|
|
|
ssl_certificate_key /etc/letsencrypt/live/\$host/privkey.pem; |
|
|
|
ssl_certificate /etc/letsencrypt/live/$sympa_domain/fullchain.pem; |
|
|
|
ssl_certificate_key /etc/letsencrypt/live/$sympa_domain/privkey.pem; |
|
|
|
include /etc/letsencrypt/options-ssl-nginx.conf; |
|
|
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; |
|
|
|
|
|
|
|
|