Optimized CDN variables during bug research

This commit is contained in:
Kevin Veen-Birkenbach 2025-08-12 14:31:24 +02:00
parent 5d36a806ff
commit 0c4cd283c4
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
3 changed files with 7 additions and 4 deletions

View File

@ -9,11 +9,10 @@
include_role:
name: srv-web-7-6-composer
vars:
domain: "{{ domains | get_domain(application_id) }}"
http_port: "{{ ports.localhost.http[application_id] }}"
- name: "generate {{domains | get_domain(application_id)}}.conf"
- name: "generate '{{ CDN_NGINX_FILE }}'"
template:
src: "nginx.conf.j2"
dest: "{{ nginx.directories.http.servers }}{{ domains | get_domain(application_id) }}.conf"
dest: "{{ nginx.directories.http.servers }}{{ CDN_NGINX_FILE }}"
notify: restart openresty

View File

@ -1,6 +1,6 @@
server
{
server_name {{domains | get_domain(application_id)}};
server_name {{ domains | get_domain(application_id) }};
{% include 'roles/srv-web-7-7-letsencrypt/templates/ssl_header.j2' %}

View File

@ -1,2 +1,6 @@
# General
application_id: "web-svc-cdn"
domain: "{{ domains | get_domain(application_id) }}"
# CDN
CDN_NGINX_FILE: "{{ domain }}.conf"