home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 7 Mar 2020 22:30:18 +0000 (23:30 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 7 Mar 2020 22:30:18 +0000 (23:30 +0100)
buster/etc_files/web/etc/nginx/nginx.conf
buster/setup_scripts/setup_web_static.sh [changed mode: 0644->0755]
buster/setup_scripts/update_pleroma_source.sh [changed mode: 0644->0755]

index 63ea6202ef93c8b2f8cac3466e453abfa8cfff3b..83092d651d8b8749482ab6cbab96cf4fb371ea15 100644 (file)
@@ -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;
old mode 100644 (file)
new mode 100755 (executable)
index b841507..4c17398
@@ -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
old mode 100644 (file)
new mode 100755 (executable)