blob: 7d08e3105e35ded446649f20a23af27bb5ca36fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
[Unit]
Description=Private Drop upload notifier
Documentation=file:/opt/blind-uploader/README.md
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
User=www-data
Group=www-data
WorkingDirectory=/opt/blind-uploader
ExecStart=/usr/bin/python3 /opt/blind-uploader/watcher.py
Environment=UPLOAD_DIR=/var/lib/blind-uploader/uploads
Environment=CONFIG_FILE=/etc/blind-uploader/config.toml
Environment=PYTHONDONTWRITEBYTECODE=1
EnvironmentFile=-/etc/default/blind-uploader
# Optional SMTP_USERNAME / SMTP_PASSWORD (keep this file root:root 0600).
EnvironmentFile=-/etc/default/blind-uploader-watcher
# The notifier only reads uploads and opens outbound SMTP connections.
UMask=0077
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=strict
ProtectHome=yes
ReadOnlyPaths=/var/lib/blind-uploader
ProtectClock=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
RestrictSUIDSGID=yes
RestrictRealtime=yes
LockPersonality=yes
CapabilityBoundingSet=
AmbientCapabilities=
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|