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.
36 lines
No EOL
928 B
Text
36 lines
No EOL
928 B
Text
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>KeepAlive</key>
|
|
<dict>
|
|
<key>Crashed</key>
|
|
<true/>
|
|
<key>SuccessfulExit</key>
|
|
<false/>
|
|
</dict>
|
|
<key>Label</key>
|
|
<string>org.nix-community.home.opencode-web</string>
|
|
<key>ProcessType</key>
|
|
<string>Background</string>
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>@opencode@/bin/opencode</string>
|
|
<string>web</string>
|
|
<string>--hostname</string>
|
|
<string>0.0.0.0</string>
|
|
<string>--port</string>
|
|
<string>4096</string>
|
|
<string>--mdns</string>
|
|
<string>--cors</string>
|
|
<string>https://example.com</string>
|
|
<string>--cors</string>
|
|
<string>http://localhost:3000</string>
|
|
<string>--print-logs</string>
|
|
<string>--log-level</string>
|
|
<string>DEBUG</string>
|
|
</array>
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
</dict>
|
|
</plist> |