summaryrefslogtreecommitdiffhomepage
path: root/packaging/dispatch-api.service
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-05-22 17:07:31 +0900
committerAdam Malczewski <[email protected]>2026-05-22 17:07:31 +0900
commit288b21cec98421fda57028a0c8c9d835cfbb14b0 (patch)
tree9ce3ec38acdcf7be96e28f1e0d5deccf6b46c917 /packaging/dispatch-api.service
parent45a4890031192f4e7409443f98e824dad17ba175 (diff)
downloaddispatch-288b21cec98421fda57028a0c8c9d835cfbb14b0.tar.gz
dispatch-288b21cec98421fda57028a0c8c9d835cfbb14b0.zip
feat: add/remove keys from UI, backend URL setting, user service, Docker fix
- Add POST /models/add-key and POST /models/remove-key API endpoints - Add 'Add New Key' modal (page-level) with provider selection - Add remove button per key in Model Status view - Add configurable backend URL setting in Settings panel with localStorage persistence - Convert systemd service from system to user service (systemctl --user) - Fix Docker entrypoint to chown all nested node_modules dirs - Update dispatch.toml credential paths to use -pro/-max naming - Make API port configurable via PORT env var (default 3000, prod 18390)
Diffstat (limited to 'packaging/dispatch-api.service')
-rw-r--r--packaging/dispatch-api.service20
1 files changed, 1 insertions, 19 deletions
diff --git a/packaging/dispatch-api.service b/packaging/dispatch-api.service
index ccbb727..120d460 100644
--- a/packaging/dispatch-api.service
+++ b/packaging/dispatch-api.service
@@ -1,12 +1,8 @@
[Unit]
Description=Dispatch API Backend
-After=network-online.target
-Wants=network-online.target
[Service]
Type=simple
-User=dispatch
-Group=dispatch
WorkingDirectory=/opt/dispatch
ExecStart=/usr/bin/bun packages/api/src/index.ts
EnvironmentFile=-/etc/dispatch/dispatch-api.conf
@@ -15,19 +11,5 @@ RestartSec=5
StandardOutput=journal
StandardError=journal
-# Data directory: systemd creates /var/lib/dispatch owned by dispatch:dispatch
-StateDirectory=dispatch
-
-# Tell the app to store its SQLite DB under /var/lib/dispatch/
-Environment=XDG_DATA_HOME=/var/lib
-
-# Security hardening
-ProtectSystem=strict
-ProtectHome=true
-NoNewPrivileges=true
-PrivateTmp=true
-PrivateDevices=true
-RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
-
[Install]
-WantedBy=multi-user.target
+WantedBy=default.target