diff --git a/examples/Caddyfile b/examples/Caddyfile new file mode 100644 index 0000000..c0769c0 --- /dev/null +++ b/examples/Caddyfile @@ -0,0 +1,6 @@ +publapi.yourdomain.tld { + reverse_proxy localhost:3000 + basicauth /signup + admin xxx + } +} diff --git a/examples/publapi.service b/examples/publapi.service new file mode 100644 index 0000000..0b6f69d --- /dev/null +++ b/examples/publapi.service @@ -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