feat: open port 4096 for opencode
This commit is contained in:
parent
08ed409342
commit
33bc6c1bad
2 changed files with 3 additions and 0 deletions
|
|
@ -29,6 +29,7 @@
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
# Required for Tailscale
|
# Required for Tailscale
|
||||||
networking.firewall.checkReversePath = "loose";
|
networking.firewall.checkReversePath = "loose";
|
||||||
|
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ 4096 ];
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
2
home.nix
2
home.nix
|
|
@ -254,6 +254,8 @@ in
|
||||||
"nfu" = "nix flake update";
|
"nfu" = "nix flake update";
|
||||||
"c" = "claude";
|
"c" = "claude";
|
||||||
"o" = "opencode";
|
"o" = "opencode";
|
||||||
|
"ow" =
|
||||||
|
"URL=\"https://$(tailscale status --json | jq -r '.Self.DNSName | sub(\"\\.$\"; \"\")')\"; printf 'Open on phone: %s\\n' \"$URL\"; tailscale serve --bg 443 http://127.0.0.1:4096; opencode web --hostname 127.0.0.1 --port 4096";
|
||||||
".." = "z ..";
|
".." = "z ..";
|
||||||
j = "jj";
|
j = "jj";
|
||||||
jgf = "jj git fetch";
|
jgf = "jj git fetch";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue