summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'deploy')
-rw-r--r--deploy/n2usenet.service.example22
-rw-r--r--deploy/nginx.conf.example12
2 files changed, 34 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
diff --git a/deploy/nginx.conf.example b/deploy/nginx.conf.example
new file mode 100644
index 0000000..046e165
--- /dev/null
+++ b/deploy/nginx.conf.example
@@ -0,0 +1,12 @@
+server {
+ listen 443 ssl http2;
+ server_name n2usenet.virebent.art;
+
+ location / {
+ proxy_pass http://127.0.0.1:8095;
+ proxy_http_version 1.1;
+ proxy_set_header Host $host;
+ proxy_set_header X-Forwarded-Proto https;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ }
+}