From: Christian Heller Date: Sat, 7 Mar 2020 22:30:18 +0000 (+0100) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/?p=config;a=commitdiff_plain;h=0504405d378ed9f92ab63e2d339b52273ec8530d Fix. --- diff --git a/buster/etc_files/web/etc/nginx/nginx.conf b/buster/etc_files/web/etc/nginx/nginx.conf index 63ea620..83092d6 100644 --- a/buster/etc_files/web/etc/nginx/nginx.conf +++ b/buster/etc_files/web/etc/nginx/nginx.conf @@ -23,6 +23,8 @@ http { # logging deactivated due to GDPR #access_log /var/log/nginx/access.log; #error_log /var/log/nginx/error.log; + access_log off; + error_log off; # virtual hosts: sites-enabled is the Debian way, conf.d the NGINX default include /etc/nginx/conf.d/*.conf; 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 diff --git a/buster/setup_scripts/update_pleroma_source.sh b/buster/setup_scripts/update_pleroma_source.sh old mode 100644 new mode 100755