diff --git a/roles/azuracast/templates/prod.env b/prod.env.j2 similarity index 100% rename from roles/azuracast/templates/prod.env rename to prod.env.j2 diff --git a/roles/azuracast/tasks/install.yml b/roles/azuracast/tasks/install.yml index 1929e6194..5f4e43ff6 100644 --- a/roles/azuracast/tasks/install.yml +++ b/roles/azuracast/tasks/install.yml @@ -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 diff --git a/roles/azuracast/templates/azuracast-nginx.conf.j2 b/roles/azuracast/templates/azuracast-nginx.conf.j2 new file mode 100644 index 000000000..985f10602 --- /dev/null +++ b/roles/azuracast/templates/azuracast-nginx.conf.j2 @@ -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; +}