Thorsten Schubert
762bf9ed8e
All checks were successful
continuous-integration/drone/push Build is passing
43 lines
1 KiB
Desktop File
43 lines
1 KiB
Desktop File
# /etc/systemd/system/tcp-erased.service
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# Copyright © 2022 Thorsten Schubert <tschubert@bafh.org>
|
|
|
|
[Unit]
|
|
Description=TCPaste erased
|
|
Wants=network-online.target
|
|
After=network.target network-online.target
|
|
|
|
[Service]
|
|
User=unsha
|
|
Group=http
|
|
Type=simple
|
|
WorkingDirectory=/srv/p
|
|
ExecStart=/usr/local/bin/tcp-erased -b 78.47.159.47:10000 -b [2a01:4f8:c0c:4814::2]:10000 --destination=/srv/p
|
|
Restart=always
|
|
RestartSec=60s
|
|
CapabilityBoundingSet=
|
|
NoNewPrivileges=True
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/srv/p
|
|
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
|