# 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;
# 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?
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