10 Commits

Author SHA1 Message Date
8b2f0ac47b
refactor(web-app-espocrm): improve config patching and container vars
- Replace `ESPOCRM_NAME` with `ESPOCRM_CONTAINER` for clarity and consistency.
- Drop unused `ESPOCRM_CONFIG_FILE_PUBLIC`, rely only on `config-internal.php`.
- Make DB credential patching idempotent using `grep` + `sed` checks.
- Replace direct sed edits for maintenance/cron/cache with EspoCRM ConfigWriter.
- Add fallback execution as root if www-data user cannot write config.
- Clear EspoCRM cache only when config changes and in update mode.
- Remove obsolete OIDC scopes inline task (now handled via env/vars).
- Fix docker-compose template to use `ESPOCRM_CONTAINER`.

This refactor makes the EspoCRM role more robust, idempotent, and aligned
with EspoCRM’s official ConfigWriter mechanism.

See conversation: https://chatgpt.com/share/68a87820-12f8-800f-90d6-01ba97a1b279
2025-08-22 16:01:48 +02:00
535094d15d
Added more update tasks for ESPOCRM config 2025-08-21 16:23:08 +02:00
41cd6b7702
Replaced get_domain with get_url 2025-08-13 23:33:49 +02:00
e99fa77b91
Optimized docker handlers for espocrm and wordpress 2025-08-13 13:34:12 +02:00
27973c2773
Optimized injection layer on lua base, as replace for nginx replace. Also optimized cloudflare cache deletion(no everytime for cleanup). Still CDN is required for logout mechanism via JS and Nextcloud deploy is buggy after changing from nginx to openresty. Propably some variable overwritte topic. Should be solved tomorrow. 2025-07-24 19:13:13 +02:00
ad449c3b6a
Adapted roles to new architecture 2025-07-17 15:39:31 +02:00
d222b55f30
Changed espocrm application id to new forma 2025-07-17 07:43:50 +02:00
30d583f0c9
Activated autoflush for EspoCRM and updated docs concerning this option 2025-07-14 13:22:02 +02:00
7a38241485
Made code more modular and refactored to cmp roles 2025-07-09 20:15:32 +02:00
563d5fd528
Huge role refactoring/cleanup. Other commits will propably follow. Because some bugs will exist. Still important for longrun and also for auto docs/help/slideshow generation 2025-07-08 23:43:13 +02:00