2.home-manager/tests/modules/programs/opencode/web-service.service
Mirza Arnaut d9da6e6457 opencode: add web service configuration
Add configuration options for the opencode web service including host,
port, mDNS, logging, and CORS settings. Implement systemd user service
to run the web server with configurable parameters.
2026-01-25 15:46:27 -06:00

11 lines
298 B
Desktop File

[Install]
WantedBy=default.target
[Service]
ExecStart=@opencode@/bin/opencode web --hostname 0.0.0.0 --port 4096 --mdns --cors https://example.com --cors http://localhost:3000 --print-logs --log-level DEBUG
Restart=always
RestartSec=5
[Unit]
After=network.target
Description=OpenCode Web Service