X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=buster%2Fsetup_scripts%2Fsetup_web_static.sh;h=4c17398bca5ffb450d0d3d94fdd3c7dd0852cdf9;hb=f90ea9bbdf5f2bd00111c6140f31136ba80d23b1;hp=b841507f4dafc324c09d7b1144ea9179a0a7839d;hpb=52499c225e20b14d73c3e1a60e3ff9d6651811bf;p=config diff --git a/buster/setup_scripts/setup_web_static.sh b/buster/setup_scripts/setup_web_static.sh old mode 100644 new mode 100755 index b841507..4c17398 --- a/buster/setup_scripts/setup_web_static.sh +++ b/buster/setup_scripts/setup_web_static.sh @@ -12,7 +12,7 @@ domain="$1" # Install configs, set up firewall. config_tree_prefix="${HOME}/config/buster" ./install_for_target.sh web -./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" web +./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" web web_static nft -f /etc/nftables.conf # Set up letsencrypt certificate. TODO: Is it auto-renewed? @@ -21,7 +21,7 @@ certbot --nginx --agree-tos --redirect --no-eff-email -m "${mail}" -d "${domain} rm /etc/nginx/sites-enabled/default # Prepare NGINX config for Pleroma. -sed -i "s/example\.tld/${domain}/g" /etc/nginx/sites-available/static.nginx +sed -i "s/REPLACE_fqdn_ECALPER/${domain}/g" /etc/nginx/sites-available/static.nginx ln -s /etc/nginx/sites-available/static.nginx /etc/nginx/sites-enabled/static.nginx service nginx restart