mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 08:30:46 +02:00
Optimized CDN variables during bug research
This commit is contained in:
parent
5d36a806ff
commit
0c4cd283c4
@ -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
|
@ -1,2 +1,6 @@
|
||||
# General
|
||||
application_id: "web-svc-cdn"
|
||||
domain: "{{ domains | get_domain(application_id) }}"
|
||||
|
||||
# CDN
|
||||
CDN_NGINX_FILE: "{{ domain }}.conf"
|
||||
|
Loading…
x
Reference in New Issue
Block a user