Commit Graph

12 Commits

Author SHA1 Message Date
Yury Kossakovsky
04e70cee2d refactor(utils): improve whiptail dialogs and logging utilities
- add adaptive terminal sizing for all whiptail dialogs (wt_get_size)
- add new wrapper functions: wt_checklist, wt_radiolist, wt_menu
- add safe parser wt_parse_choices to replace eval
- improve NEWT_COLORS theme with better contrast (brightgreen/brightcyan)
- add new logging functions: log_header, log_subheader, log_divider, log_box
- add spinner animation utilities for progress indication
- expand color palette with bright variants and text styles
- update 04_wizard.sh to use new whiptail wrappers
2025-12-12 13:43:20 -07:00
Yury Kossakovsky
c58b759135 refactor: unify logging and remove emoji in configure script 2025-12-12 10:20:56 -07:00
Yury Kossakovsky
e0018f2b2d refactor: consolidate shared utilities and add script documentation
- move common functions to utils.sh: init_paths, read_env_var, write_env_var,
  is_profile_active, load_env, gen_password, gen_hex, gen_base64, generate_bcrypt_hash
- add documentation headers to all installation scripts
- replace duplicate code with shared utility calls
- consolidate bcrypt hash generation loop in 03_generate_secrets.sh
- add DEBIAN_FRONTEND save/restore helpers for whiptail scripts
- standardize path initialization across all scripts
2025-12-12 09:58:12 -07:00
Yury Kossakovsky
98f2dd807e refactor: integrate worker-runner generation into install/update flow
update configure services to call generate_n8n_workers.sh instead of
prompting for separate runner count. update start_services.py and
apply_update.sh to include docker-compose.n8n-workers.yml when present.
2025-12-11 11:39:01 -07:00
Yury Kossakovsky
638c3d17a6 feat: add n8n v2.0 external task runner support
upgrade n8n from 1.123.3 to 2.0.0-rc.4 with external task runners for
Code node execution. task runners handle javascript and python code
execution in isolated containers with configurable concurrency.

key changes:
- add n8n-runner service using n8nio/runners:2.0.0-rc.4
- configure runner auth token and broker communication
- add N8N_RUNNER_COUNT for scaling runner replicas
- move code node library config to runner container
- update binary data mode from filesystem to database
- add runner count prompt to installation wizard
2025-12-11 11:39:01 -07:00
Yury Kossakovsky
bb3c6b4810 Update confirmation prompts in secret generation and service configuration scripts to default to 'yes'
- Modified the confirmation prompts in 03_generate_secrets.sh and 05_configure_services.sh to default to 'yes' for user actions regarding domain and email confirmation, as well as n8n worker updates. This change aims to streamline user interactions and reduce the need for repeated confirmations.
2025-11-09 13:48:00 -07:00
Yury Kossakovsky
4d65382e92 Refactor user input prompts in scripts to use whiptail for better UX
- Replaced standard input prompts with whiptail dialogs in 03_generate_secrets.sh and 05_configure_services.sh for domain, email, OpenAI API key, and n8n worker count.
- Added validation messages using whiptail for empty inputs and invalid formats.
- Introduced new utility functions in utils.sh for whiptail integration, ensuring the script checks for whiptail availability.
2025-09-17 14:15:12 -06:00
Yury Kossakovsky
30b69350f1 Add POSTGRES_HOST variable to service configuration script
- Introduced a new environment variable, POSTGRES_HOST, to ensure Supabase Analytics targets the correct Postgres service name in the Docker setup.
- This change enhances the accuracy of database connection settings in the service configuration process.
2025-08-29 09:10:08 -06:00
Yury Kossakovsky
fc390cb1d5 Refactor service configuration script for enhanced user experience
- Improved the handling of the OpenAI API key prompt, allowing for reuse of existing values and clearer user instructions.
- Streamlined the n8n worker count configuration process with better validation and user feedback.
- Updated Cloudflare Tunnel token handling to check for active profiles before prompting for input.
- Enhanced logging for successful configuration completion, ensuring clarity in the script's execution flow.
2025-08-28 18:56:36 -06:00
Yury Kossakovsky
0396f8bb29 Enhance service configuration script for improved user interaction
- Refactored prompts for OpenAI API key and n8n workflow import settings in `05_configure_services.sh` to streamline user experience.
- Improved validation and handling of n8n worker count input, ensuring robust configuration.
- Added logic to manage Cloudflare Tunnel token input more effectively, reusing existing tokens when available.
- Updated logging for better clarity during configuration steps, enhancing overall maintainability of the script.
2025-08-28 18:47:02 -06:00
Yury Kossakovsky
03a6812ec5 Refactor service configuration scripts and streamline .env updates
- Removed redundant prompts for OpenAI API key and Cloudflare Tunnel token in `03_generate_secrets.sh` and `04_wizard.sh`.
- Introduced `05_configure_services.sh` to handle service configuration and .env updates, improving clarity and maintainability.
- Enhanced user prompts for n8n worker count and workflow import settings, ensuring better user experience during configuration.
- Updated installation script to include the new configuration script, ensuring a cohesive setup process.
2025-08-28 18:42:50 -06:00
Yury Kossakovsky
2b3b602fa7 Refactor service scripts and update final report generation
- Renamed and reorganized service scripts: `05_run_services.sh` is now `06_run_services.sh`, and `06_final_report.sh` is now `07_final_report.sh`.
- Updated references in documentation and other scripts to reflect the new script names.
- Enhanced the final report script to include access details for newly integrated services, ensuring comprehensive output for users.
2025-08-28 18:42:43 -06:00