orchestrator: restore opencode web launcher
This commit is contained in:
@@ -118,15 +118,12 @@ SSHCFG
|
||||
'';
|
||||
};
|
||||
|
||||
# opencode web server — one shared instance; all agent sessions attach to it.
|
||||
# opencode web server — one shared instance; agent sessions attach to it for web visibility.
|
||||
# Serves the web UI at http://oc.commoninternet.net (via nginx below, tailscale-only).
|
||||
# TINFOIL_API_KEY and other creds are read from /srv/cc-ci/.testenv at startup.
|
||||
# Provider creds are read from /srv/cc-ci/.testenv at startup.
|
||||
systemd.services.opencode-web = {
|
||||
description = "opencode web server for cc-ci agents (tinfoil/deepseek backend)";
|
||||
# PARKED 2026-06-01: loops run on the claude backend now, so the opencode web server is not
|
||||
# needed. Definition kept for easy re-enable — restore `wantedBy = [ "multi-user.target" ];`
|
||||
# and rebuild to bring it back.
|
||||
wantedBy = [ ];
|
||||
description = "opencode web server for cc-ci agents";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network-online.target" "tailscaled.service" ];
|
||||
wants = [ "network-online.target" ];
|
||||
serviceConfig = {
|
||||
@@ -139,17 +136,16 @@ SSHCFG
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
};
|
||||
environment = { HOME = "/home/loops"; };
|
||||
environment = {
|
||||
HOME = "/home/loops";
|
||||
PATH = lib.mkForce "/run/wrappers/bin:/home/loops/.local/bin:/run/current-system/sw/bin:/usr/bin:/bin:/home/loops/.nix-profile/bin:/nix/profile/bin:/home/loops/.local/state/nix/profile/bin:/etc/profiles/per-user/loops/bin:/nix/var/nix/profiles/default/bin";
|
||||
};
|
||||
path = [ pkgs.bash pkgs.coreutils pkgs.git pkgs.python3 pkgs.openssh pkgs.tmux pkgs.nettools ];
|
||||
};
|
||||
|
||||
# nginx — reverse-proxy oc.commoninternet.net → opencode web server.
|
||||
# Bound to the tailscale IP so it is only reachable on the tailnet.
|
||||
# PARKED 2026-06-01 alongside opencode-web (loops are on claude now): this vhost just proxies to
|
||||
# the now-stopped :4096 server, so it's harmless but dormant. Kept (not deleted) so re-enabling
|
||||
# opencode-web restores the UI in one step. If opencode is dropped for good, remove this block
|
||||
# and the DNS step below.
|
||||
# DNS: add A record oc.commoninternet.net → 100.84.190.30 (operator step; only needed if re-enabled).
|
||||
# DNS: add A record oc.commoninternet.net → 100.84.190.30 (operator step if hostname access is wanted).
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
|
||||
Reference in New Issue
Block a user