Thorsten Schubert
5e7a90bb3e
* Style and formatting cleanup * Bash transfer script and systemd unit file * Point docs to new url
54 lines
1.3 KiB
Desktop File
54 lines
1.3 KiB
Desktop File
# /etc/systemd/system/transfer-sh.service
|
|
|
|
[Unit]
|
|
Description=transfer.sh service
|
|
Wants=network-online.target
|
|
After=network.target network-online.target
|
|
|
|
[Service]
|
|
Environment=LISTENER=127.0.0.1:53334
|
|
Environment=TEMP_PATH=/srv/t
|
|
Environment=WEB_PATH=/usr/local/share/transfer/dist
|
|
Environment=EMAIL_CONTACT=abuse@unsha.re
|
|
Environment=PROVIDER=local
|
|
Environment=PURGE_DAYS=3
|
|
Environment=PURGE_INTERVAL=1
|
|
Environment=MAX_UPLOAD_SIZE=524289
|
|
Environment=LOG=
|
|
Environment=BASEDIR=/srv/t
|
|
Environment=CORS_DOMAINS=file.unsha.re,f.unsha.re
|
|
Environment=RANDOM_TOKEN_LENGTH=3
|
|
|
|
User=unsha
|
|
Group=http
|
|
Type=simple
|
|
WorkingDirectory=/srv/t
|
|
ExecStart=/usr/local/bin/transfer
|
|
Restart=always
|
|
RestartSec=60s
|
|
CapabilityBoundingSet=
|
|
NoNewPrivileges=True
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/srv/t
|
|
ReadOnlyPaths=/usr/local/share/transfer/dist
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
PrivateUsers=true
|
|
ProtectHostname=true
|
|
ProtectClock=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|