diff --git a/conf/systemd.service b/conf/systemd.service index a76f0d4..7bc1c47 100755 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -3,12 +3,15 @@ Description=__APP__ social network After=network.target postgresql.service nginx.service [Service] +ExecReload=/bin/kill $MAINPID KillMode=process Restart=on-failure ; Name of the user that runs the Pleroma service. User=__APP__ Group=__APP__ +; Declares that Pleroma runs in production mode. +Environment="MIX_ENV=prod" ; Make sure that all paths fit your installation. ; Path to the home directory of the user running the Pleroma service. diff --git a/scripts/install b/scripts/install index 5a4b37c..306fdd8 100755 --- a/scripts/install +++ b/scripts/install @@ -208,11 +208,14 @@ pushd $final_path/$app --dbpass $db_pwd \ --rum N \ --indexable Y \ + --db-configurable Y \ --uploads-dir $datadir/uploads \ --static-dir $datadir/static \ --listen-ip 127.0.0.1 \ --listen-port $port \ - --db-configurable Y" + --strip-uploads Y \ + --anonymize-uploads Y \ + --dedupe-uploads Y" popd cat "../conf/ldap.exs" >> "$config"