Files
computer-playbook/roles/svc-prx-openresty
Kevin Veen-Birkenbach 9ba0efc1a1 Refactor resource configuration:
- Introduce new resource_filter plugin (mandatory hard_default, auto entity_name fallback)
- Replace get_app_conf calls with resource_filter in resource.yml.j2
- Add WEBSERVER_CPUS_EFFECTIVE, WEBSERVER_WORKER_PROCESSES, WEBSERVER_WORKER_CONNECTIONS to 05_webserver.yml
- Update Nginx templates (sys-svc-webserver, web-app-magento, web-app-nextcloud) to use new vars
- Extend svc-prx-openresty config with cpus/mem limits
- Add unit tests for resource_filter

Details: https://chatgpt.com/share/68d3a493-9a5c-800f-8cd2-bd2e7a3e3fda
2025-09-24 09:58:30 +02:00
..
2025-09-24 09:58:30 +02:00
2025-09-02 22:49:02 +02:00

OpenResty

This role deploys an OpenResty container via Docker Compose, validates its configuration, and restarts it on changes.

Description

  • Runs an OpenResty container in host network mode
  • Mounts Nginx configuration and Lets Encrypt directories
  • Validates the OpenResty (Nginx) configuration before any restart
  • Restarts the container only if the configuration is valid

Overview

  1. Loads the base Docker Compose setup
  2. Adds the OpenResty service
  3. Defines handlers to validate and restart the container
  4. Triggers a restart on configuration changes

Further Reading