Commit graph

202 commits

Author SHA1 Message Date
admin
1c2dbb9540 fix: add missing mode declaration 2026-08-02 09:14:28 +00:00
admin
3d076221e2 feat: block/monitoring mode — ask during deploy, configurable in .env 2026-08-02 09:12:27 +00:00
admin
e5e1697402 reorder: deploy, edit, status, remove, remote, dash, quit 2026-08-02 09:09:16 +00:00
admin
c96fb88fbd feat: edit node — reconfigure port, upstream IP/port 2026-08-02 09:07:53 +00:00
admin
221b1968b0 feat: interactive menu, multi-node .env, numbered remove
- No flags needed — interactive menu on startup
- [1] Deploy: shows .env nodes, ✓ marks deployed, pick by number
- [2] Remove: numbered list of deployed nodes from state.json
- [3] Status: shows all nodes with systemd state
- [4] Tunnel, [5] Dashboard (TUI)
- .env supports WALLARM_NODES=srv1,srv2 with per-node keys
- Backward compatible with legacy single-node .env
2026-08-02 09:04:39 +00:00
admin
86a172a4ed fix: add --config-file to wcli in patchPaths for multi-instance 2026-08-02 08:41:20 +00:00
admin
f4e931bbd4 fix: use bash -c for find+sed, kill temp nginx, simplify systemd
- patchPaths uses bash -c 'find ... -exec sed {} +' instead of Go exec
- Port offset applied to ALL yaml/yml/conf files across instance
- Kill deploy-time nginx before systemd starts
- Simplified systemd template (removed broken fuser line)
2026-08-02 08:18:06 +00:00
admin
6a9337553a fix: per-instance port offset, improved systemd nginx start
- Port offset from instance name hash avoids supervisord conflicts
- ExecStartPre kills old nginx before starting new one
- Removed broken patchelf approach
2026-08-02 07:57:05 +00:00
admin
3884f094fd fix: dynamic symlink in ExecStartPre for multi-instance support
Each instance creates /opt/wallarm -> its own directory before starting.
Removed patchelf approach (broke library paths).
Systemd template updated with ExecStartPre ln -sf.
2026-08-02 07:45:48 +00:00
admin
aeb8be3ebc feat: patchelf ELF binaries per instance for true multi-node 2026-08-02 07:31:12 +00:00
admin
6c8b9dc166 fix: systemd ExecStartPre with - prefix, remove symlink dependency
- ExecStartPre=- allows nginx start failure without blocking service
- Removed shell constructs (|| true) incompatible with systemd
- Removed env.list background goroutine (setup.sh no longer used)
- Multi-instance needs per-instance ELF patching (WIP)
2026-08-02 07:20:43 +00:00
admin
56468d3366 feat: nginx with Wallarm module in systemd, wallarm-status endpoint 2026-08-02 06:33:07 +00:00
admin
50ba28c2f9 fix: always register node, remove broken skip logic and stray brace 2026-08-02 06:00:01 +00:00
admin
6f5c281089 fix: add Symlink constant, create /opt/wallarm → instance after move 2026-08-02 05:56:53 +00:00
admin
08653eca9d fix: patch all config files (*.sh, *.list, *.conf, *.yaml, *.yml, *.json) 2026-08-01 22:06:07 +00:00
admin
310ee0a8a4 fix: patchPaths adds wstore.yaml, avoid corrupting binaries 2026-08-01 22:00:05 +00:00
admin
8b49978ea1 fix: use bundled python3.10 in systemd, patch paths after move 2026-08-01 21:52:36 +00:00
admin
a6359beb61 fix: remove supervisord start (blocks forever with -n), use state for skip check 2026-08-01 21:15:21 +00:00
admin
938aa168b3 fix: skip registration if node.yaml exists, fix else block brace 2026-08-01 21:12:18 +00:00
admin
7f7bff15ca fix: remove duplicate Registering print, wait for registration 2026-08-01 20:48:02 +00:00
admin
e4b1021c52 fix: remove goroutine timeout, registration takes 30-60s normally 2026-08-01 20:29:47 +00:00
admin
da56eaf164 fix: explicit goroutine timeout for registration 2026-08-01 20:12:37 +00:00
admin
842024a6ea fix: source env.list before register, 60s timeout 2026-08-01 19:52:29 +00:00
admin
452976ab43 fix: help text, node status running after deploy 2026-08-01 19:39:26 +00:00
admin
d5252b3be0 feat: --remove and --status flags 2026-08-01 19:32:39 +00:00
admin
ddf0dd9884 fix: proper systemd template, auto-enable after deploy 2026-08-01 19:30:42 +00:00
admin
bf3ba41179 feat: start Wallarm via supervisord after registration 2026-08-01 19:26:52 +00:00
admin
b01f5d6a52 fix: register-node needs job:register arg, add --deploy flag for .env mode 2026-08-01 19:24:10 +00:00
admin
e9dff30d84 feat: .env file support — skip prompts on repeat deploys
- /opt/fw/.env stores token, cloud, node, port, upstream
- If .env exists with WALLARM_TOKEN, all prompts are skipped
- Saved automatically after successful deployment
- Perfect for testing: edit .env once, deploy repeatedly
2026-08-01 19:20:51 +00:00
admin
cbe6d51ac6 fix: bypass setup.sh, register node directly + pick-module 2026-08-01 19:18:39 +00:00
admin
57e0c8798a fix: patch set -e out of setup.sh before running 2026-08-01 19:00:30 +00:00
admin
f7689b4d6a fix: check node.yaml for success, ignore env.list exit code 2026-08-01 18:57:24 +00:00
admin
8484ca46a7 fix: keep env.list alive with background goroutine during setup.sh 2026-08-01 18:37:17 +00:00
admin
0922102226 fix: patch setup.sh env.list sed lines to be non-fatal, kill port with ss 2026-08-01 18:36:11 +00:00
admin
bc66018af3 fix: kill existing process on target port before starting nginx 2026-08-01 18:29:03 +00:00
admin
4432855a2d fix: trap DEBUG to ensure env.list always exists during setup.sh 2026-08-01 18:27:20 +00:00
admin
8638f198ff fix: basic nginx.conf (no wallarm directives before module loads) 2026-08-01 17:35:26 +00:00
admin
d405c98ff8 fix: deploy to real /opt/wallarm, then move to /opt/fw/{name}/wallarm
No symlinks, no path patching. Setup.sh runs in its native environment.
After success, os.Rename moves everything to the instance directory.
2026-08-01 17:30:05 +00:00
admin
9cf6a2a66b fix: patch setup.sh /opt/wallarm paths instead of symlink 2026-08-01 17:28:04 +00:00
admin
bb45f8606d fix: robust symlink creation, handle /opt/wallarm existing as directory 2026-08-01 17:22:13 +00:00
admin
a1d71b3eac feat: start per-instance NGINX with status endpoint before setup.sh 2026-08-01 17:18:19 +00:00
admin
c38535398d refactor: per-instance NGINX, clean native.go 2026-08-01 17:16:02 +00:00
admin
91b8b0e980 fix: set cmd.Dir to instance dir so setup.sh finds modules/ 2026-08-01 17:14:45 +00:00
admin
fd3a005fe8 fix: use Wallarm v6.12.5 (matching AIO_BASE from ingress repo) 2026-08-01 17:11:19 +00:00
admin
02e9fd2793 fix: add --custom-ngx-build back, fix preflight URL 2026-08-01 17:10:51 +00:00
admin
83f73c0e9c simplify: setup.sh just builds and drops binary in /opt/fw/
No directory structure creation, no confusing messages.
Deploy binary handles everything else.
2026-08-01 17:00:43 +00:00
admin
b44da10ae7 fix: preflight URL, /opt/fw/ refactor complete 2026-08-01 16:55:53 +00:00
admin
02f3368fa6 fix: remove cmd.Dir — setup.sh cp -a . /opt/wallarm self-destructs when cwd is /opt/wallarm 2026-08-01 16:53:19 +00:00
admin
af8df1a659 fix: add --keep flag to prevent Makeself from deleting /opt/wallarm on failure 2026-08-01 16:52:40 +00:00
admin
7875dbca13 fix: remove --force flag — caused setup.sh to hang 2026-08-01 16:46:23 +00:00