summaryrefslogtreecommitdiffstats
path: root/deploy/n2usenet.service.example
diff options
context:
space:
mode:
authorGab Virebent <gabriel1@virebent.art>2026-08-03 17:13:50 +0200
committerGab Virebent <gabriel1@virebent.art>2026-08-03 17:13:50 +0200
commitcd58d593789c6facb1d05b7f255bc2c5f2e46010 (patch)
tree87a226313e49e2c6f7b7028d77d4957db416d1c1 /deploy/n2usenet.service.example
downloadn2usenet-cd58d593789c6facb1d05b7f255bc2c5f2e46010.tar.gz
n2usenet-cd58d593789c6facb1d05b7f255bc2c5f2e46010.tar.xz
n2usenet-cd58d593789c6facb1d05b7f255bc2c5f2e46010.zip
Initial import: n2usenet HTTPS/Nym Usenet gateway
Diffstat (limited to 'deploy/n2usenet.service.example')
-rw-r--r--deploy/n2usenet.service.example22
1 files changed, 22 insertions, 0 deletions
diff --git a/deploy/n2usenet.service.example b/deploy/n2usenet.service.example
new file mode 100644
index 0000000..37a16bb
--- /dev/null
+++ b/deploy/n2usenet.service.example
@@ -0,0 +1,22 @@
+[Unit]
+Description=N2Usenet HTTPS/Nym gateway
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Type=simple
+User=n2usenet
+Group=n2usenet
+EnvironmentFile=/etc/n2usenet/n2usenet.env
+ExecStart=/opt/n2usenet/bin/n2usenet
+Restart=on-failure
+RestartSec=5
+
+NoNewPrivileges=true
+PrivateTmp=true
+ProtectSystem=strict
+ProtectHome=true
+ReadWritePaths=/var/lib/n2usenet
+
+[Install]
+WantedBy=multi-user.target