diff --git a/contrib/systemd/copyparty.service b/contrib/systemd/copyparty.service index fd995c6c..5a54c12d 100644 --- a/contrib/systemd/copyparty.service +++ b/contrib/systemd/copyparty.service @@ -3,10 +3,16 @@ # # installation: # cp -pv copyparty.service /etc/systemd/system && systemctl enable --now copyparty +# restorecon -vr /etc/systemd/system/copyparty.service +# firewall-cmd --permanent --add-port={80,443,3923}/tcp +# firewall-cmd --reload # # you may want to: -# change '/usr/bin/python' to another interpreter +# change '/usr/bin/python3' to another interpreter # change '/mnt::rw' to another location or permission-set +# remove '-p 80,443,3923' to only listen on port 3923 +# add '-i 127.0.0.1' to only allow local connections +# add '--use-fpool' if uploading into nfs locations # # with `Type=notify`, copyparty will signal systemd when it is ready to # accept connections; correctly delaying units depending on copyparty. @@ -27,7 +33,7 @@ Description=copyparty file server [Service] Type=notify SyslogIdentifier=copyparty -ExecStart=/usr/bin/python3 /usr/local/bin/copyparty-sfx.py -q -v /mnt::rw +ExecStart=/usr/bin/python3 /usr/local/bin/copyparty-sfx.py -q -p 80,443,3923 -v /mnt::rw ExecStartPre=/bin/bash -c 'mkdir -p /run/tmpfiles.d/ && echo "x /tmp/pe-copyparty*" > /run/tmpfiles.d/copyparty.conf' [Install]