main.ymlΒΆ

---
# General
application_id: "svc-prx-openresty"
entity_name: "{{ application_id | entity_name }}"

# Openresty
OPENRESTY_IMAGE: "{{ lookup('config','svc-prx-openresty', 'services.openresty.image') }}"
OPENRESTY_VERSION: "{{ lookup('config','svc-prx-openresty', 'services.openresty.version') }}"
OPENRESTY_CONTAINER: "{{ lookup('config','svc-prx-openresty', 'services.openresty.name') }}"
OPENRESTY_CONTAINER_ADDRESS: "{{ lookup('container_address', application_id, entity_name) }}"

OPENRESTY_PROMETHEUS_ENABLED: "{{ ('web-app-prometheus' in lookup('applications')) | lower }}"
OPENRESTY_LUA_PROMETHEUS_URL_MAIN: "https://raw.githubusercontent.com/infinito-nexus/nginx-lua-prometheus/master/prometheus.lua"
OPENRESTY_LUA_PROMETHEUS_URL_COUNTER: "https://raw.githubusercontent.com/infinito-nexus/nginx-lua-prometheus/master/prometheus_resty_counter.lua"
OPENRESTY_LUA_PROMETHEUS_URL_KEYS: "https://raw.githubusercontent.com/infinito-nexus/nginx-lua-prometheus/master/prometheus_keys.lua"