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.
11 lines
298 B
Desktop File
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
|