d771ea9dd5
OpenCode como agente de desarrollo con acceso al filesystem del host, expuesto vía Traefik con autenticación forward auth de Authentik. Incluye configuración de systemd para modo web y ejemplos de .env. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
684 B
Desktop File
25 lines
684 B
Desktop File
[Unit]
|
|
Description=OpenCode Web UI
|
|
Documentation=https://opencode.ai/docs/web/
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=felidae
|
|
Group=felidae
|
|
WorkingDirectory=/home/eduardo/Portainer_repo
|
|
EnvironmentFile=/etc/opencode-web.env
|
|
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
Environment=HOME=/home/felidae
|
|
ExecStart=/usr/local/bin/opencode-host web --hostname 10.0.0.1 --port 4096 --print-logs
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
# OpenCode necesita operar sobre repos y herramientas del host; se mantiene sin
|
|
# sandboxing restrictivo de systemd a proposito.
|
|
NoNewPrivileges=false
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|