dev_arc_aws/.kiro/hooks/tunnel-racknerd2-8080.kiro.hook

14 lines
669 B
Text
Raw Normal View History

{
"enabled": true,
"name": "View ArchNest on racknerd2 (localhost:8080)",
"description": "Opens an SSH local port-forward (localhost:8080 -> racknerd2 8080) so the deployed ArchNest site can be viewed in a browser at http://localhost:8080. RackNerd's edge only allows port 22, so this tunnels the web app over SSH. Trigger it to start the tunnel; stop the hook's process to close it.",
"version": "1",
"when": {
"type": "userTriggered"
},
"then": {
"type": "runCommand",
"command": "ssh -o BatchMode=yes -o ExitOnForwardFailure=yes -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -L 8080:localhost:8080 -N racknerd2",
"timeout": 0
}
}