add example caddyfile and systemd service

This commit is contained in:
Arya 2023-01-19 12:15:01 +05:30
parent 1daeeb74e1
commit 38ae5ad2c6
Signed by untrusted user: arya
GPG Key ID: 842D12BDA50DF120
2 changed files with 22 additions and 0 deletions

6
examples/Caddyfile Normal file
View File

@ -0,0 +1,6 @@
publapi.yourdomain.tld {
reverse_proxy localhost:3000
basicauth /signup
admin xxx
}
}

16
examples/publapi.service Normal file
View File

@ -0,0 +1,16 @@
[Unit]
Description=API for the Project Segfault Pubnix
After=networking.target
[Service]
WorkingDirectory=/var/publapi
User=publapi
Group=publapi
Environment=PUBLAPI_PORT=3000
Environment=SHOUTRRR_URL='matrix://user:password@host/'
ExecStart=/var/publapi/publapi
RestartSec=5
Restart=always
KillMode=mixed
[Install]
WantedBy=default.target