Initial commit: OpenCode setup and configuration

This commit is contained in:
2026-01-18 10:23:49 +08:00
commit 615cfe3eb9
11 changed files with 164 additions and 0 deletions

14
opencode.service Normal file
View File

@@ -0,0 +1,14 @@
[Unit]
Description=OpenCode Web Service
After=network.target
[Service]
Type=simple
User=wartana
WorkingDirectory=/home/wartana
EnvironmentFile=/home/wartana/opencode/.env
ExecStart=/home/wartana/.opencode/bin/opencode web --port 3040 --hostname 127.0.0.1
Restart=on-failure
[Install]
WantedBy=multi-user.target