mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
use .j2
This commit is contained in:
parent
de282a85cd
commit
a477896003
3 changed files with 25 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
- name: AzuraCast - Install {{ azuracast_host_dir }}/.env from template
|
||||
template:
|
||||
src: prod.j2
|
||||
src: prod.env.j2
|
||||
dest: "{{ azuracast_host_dir }}/.env"
|
||||
#owner: root
|
||||
#group: root
|
||||
|
|
24
roles/azuracast/templates/azuracast-nginx.conf.j2
Normal file
24
roles/azuracast/templates/azuracast-nginx.conf.j2
Normal file
|
@ -0,0 +1,24 @@
|
|||
location /azuracast/
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_set_header X-Script-Name /azureacast;
|
||||
proxy_pass http://127.0.0.1:{{ azuracast_http_port }};
|
||||
}
|
||||
|
||||
location /radio/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_set_header X-Script-Name /radio;
|
||||
proxy_pass http://127.0.0.1:{{ azuracast_http_port }};
|
||||
}
|
||||
|
||||
# http://box/livres
|
||||
location {{ calibreweb_url3 }}/ {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Scheme $scheme;
|
||||
proxy_set_header X-Script-Name {{ calibreweb_url3 }};
|
||||
proxy_pass http://127.0.0.1:8083;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue