diff options
| author | Adam Malczewski <[email protected]> | 2026-05-22 16:19:35 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-05-22 16:19:35 +0900 |
| commit | 45a4890031192f4e7409443f98e824dad17ba175 (patch) | |
| tree | a28e1b0618f682476b0b57ba70e8ba26a1939a49 /packaging/dispatch-api.conf | |
| parent | 9ecaabd87c0e51b8a7408dabb0133a9344586859 (diff) | |
| download | dispatch-45a4890031192f4e7409443f98e824dad17ba175.tar.gz dispatch-45a4890031192f4e7409443f98e824dad17ba175.zip | |
feat: Arch Linux packaging with Electron frontend, systemd backend service, and Windows exe build
- Add Electron wrapper (main.cjs, preload.cjs) for desktop frontend
- Add systemd service unit, env config, and sysusers for backend API
- Add PKGBUILD and .install for Arch package (makepkg -si)
- Add desktop entry, SVG/PNG icon, and wrapper scripts
- Add bin/build-pkg, bin/install-pkg, bin/windows-pkg scripts
- Make API port configurable via PORT env var (default 3000, prod 18390)
- Add electron-builder config for Windows exe cross-compilation
- Set vite base to './' for Electron file:// loading
Diffstat (limited to 'packaging/dispatch-api.conf')
| -rw-r--r-- | packaging/dispatch-api.conf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/packaging/dispatch-api.conf b/packaging/dispatch-api.conf new file mode 100644 index 0000000..9824e16 --- /dev/null +++ b/packaging/dispatch-api.conf @@ -0,0 +1,31 @@ +# /etc/dispatch/dispatch-api.conf +# Environment configuration for the Dispatch API service. +# This file is sourced by systemd (via EnvironmentFile=) and by the +# dispatch-api-wrapper.sh script for manual invocation. +# +# Lines beginning with '#' are comments and are ignored. +# Syntax: KEY=value (no spaces around '=', no 'export' keyword needed for systemd) + +# --------------------------------------------------------------------------- +# LLM / AI provider +# --------------------------------------------------------------------------- + +# API key used by the backend to call the OpenCode (or compatible) LLM API. +OPENCODE_API_KEY= + +# --------------------------------------------------------------------------- +# Runtime environment +# --------------------------------------------------------------------------- + +# Set to "production" for live deployments. +NODE_ENV=production + +# --------------------------------------------------------------------------- +# Server +# --------------------------------------------------------------------------- + +# Port the API listens on (default: 3000). +PORT=18390 + +# Hostname/address to bind to (default: 0.0.0.0). +# HOST=0.0.0.0 |
