diff --git a/docs/servicem8-dev-inspector.service b/docs/servicem8-dev-inspector.service new file mode 100644 index 0000000..635384d --- /dev/null +++ b/docs/servicem8-dev-inspector.service @@ -0,0 +1,17 @@ +[Unit] +Description=ServiceM8 FastAPI Inspector +After=network.target + +[Service] +User=michael +Group=michael +WorkingDirectory=/opt/webhooks +Environment="WEBHOOK_DB_PATH=/opt/webhooks/servicem8_webhooks.db" +Environment="WEBHOOK_INSPECTOR_HOST=0.0.0.0" +Environment="WEBHOOK_INSPECTOR_PORT=18355" +ExecStart=/opt/webhooks/bin/uvicorn servicem8_inspector:app --host 0.0.0.0 --port 18355 +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target diff --git a/docs/servicem8-dev-webhook.service b/docs/servicem8-dev-webhook.service new file mode 100644 index 0000000..b4c5af8 --- /dev/null +++ b/docs/servicem8-dev-webhook.service @@ -0,0 +1,17 @@ +[Unit] +Description=ServiceM8 FastAPI Webhook Receiver +After=network.target + +[Service] +User=michael +Group=michael +WorkingDirectory=/opt/webhooks +Environment="WEBHOOK_HOST=0.0.0.0" +Environment="WEBHOOK_PORT=18354" +Environment="WEBHOOK_DB_PATH=/opt/webhooks/servicem8_webhooks.db" +ExecStart=/opt/webhooks/bin/uvicorn servicem8_webhook_receiver:app --host 0.0.0.0 --port 18354 +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target