X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_pleroma_otp.sh;h=7a38d79398c543ce64fc07c238ce553e77fac3b6;hb=f90ea9bbdf5f2bd00111c6140f31136ba80d23b1;hp=49d28b97ac63f8e02635aa72154d819da237d215;hpb=ff30fa3f21a8c11a735527f4abeb77f1b052afb3;p=config diff --git a/buster/setup_scripts/setup_pleroma_otp.sh b/buster/setup_scripts/setup_pleroma_otp.sh index 49d28b9..7a38d79 100755 --- a/buster/setup_scripts/setup_pleroma_otp.sh +++ b/buster/setup_scripts/setup_pleroma_otp.sh @@ -12,7 +12,7 @@ mail="$2" # Install dependencies, set up firewall. config_tree_prefix="${HOME}/config/buster" ./install_for_target.sh web pleroma pleroma_otp -./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" web +./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" web pleroma nft -f /etc/nftables.conf # Set up letsencrypt certificate. TODO: Is it auto-renewed? @@ -50,6 +50,7 @@ su pleroma -s $SHELL -lc "./bin/pleroma_ctl instance gen \ --dbhost localhost \ --dbname pleroma \ --dbuser pleroma \ +--db-configurable N \ --rum N \ --indexable Y \ --uploads-dir /var/lib/pleroma/uploads \ @@ -70,10 +71,14 @@ cp "${config_tree_prefix}/other_files/pixel.png" /var/lib/pleroma/static/ chown pleroma:nogroup /var/lib/pleroma/static/pixel.png # Info panel and TOS. -mkdir -p /var/lib/pleroma/static/instance -mkdir -p /var/lib/pleroma/static/static -cp "${config_tree_prefix}/other_files/pleroma_panel.html" /var/lib/pleroma/static/instance/panel.html -cp "${config_tree_prefix}/other_files/pleroma_terms-of-service.html" /var/lib/pleroma/static/static/terms-of-service.html +#mkdir -p /var/lib/pleroma/static/instance +#mkdir -p /var/lib/pleroma/static/static +#cp "${config_tree_prefix}/other_files/pleroma_panel.html" /var/lib/pleroma/static/instance/panel.html +#cp "${config_tree_prefix}/other_files/pleroma_terms-of-service.html" /var/lib/pleroma/static/static/terms-of-service.html +#cp "${config_tree_prefix}/other_files/pleroma_robots.txt" /var/lib/pleroma/static/robots.txt + +# Hack to fix +curl https://git.pleroma.social/pleroma/pleroma/-/raw/4271cfb81a8983f5ec6a878cab1fb3fbd164245d/priv/static/static/static-fe.css?inline=false >> /var/lib/pleroma/static/static/static-fe.css # Prepare NGINX config for Pleroma. cp /opt/pleroma/installation/pleroma.nginx /etc/nginx/sites-available/pleroma.nginx