summaryrefslogtreecommitdiff
path: root/templates/nginx
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-07-05 13:47:40 +0300
committerheqnx <root@heqnx.com>2025-07-05 13:47:40 +0300
commit7ff2aaef6717b97278d97e40143e0dec22924fa5 (patch)
tree2124d5358bdb58caf9147f2a022e2dc65c8ae458 /templates/nginx
parente95318bcada0feb1dcdd44773e690b2addc6de38 (diff)
downloadansible-icecast2-7ff2aaef6717b97278d97e40143e0dec22924fa5.tar.gz
ansible-icecast2-7ff2aaef6717b97278d97e40143e0dec22924fa5.zip
improvements, added metadata to script convertor, added spinnet, added track info to html
Diffstat (limited to 'templates/nginx')
-rw-r--r--templates/nginx/nginx.conf.j219
1 files changed, 18 insertions, 1 deletions
diff --git a/templates/nginx/nginx.conf.j2 b/templates/nginx/nginx.conf.j2
index 7f1ac2b..2e257e0 100644
--- a/templates/nginx/nginx.conf.j2
+++ b/templates/nginx/nginx.conf.j2
@@ -77,7 +77,7 @@ http {
}
location /stream {
- proxy_pass http://localhost:8000/stream;
+ proxy_pass http://127.0.0.1:8000/stream;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
@@ -96,6 +96,23 @@ http {
add_header Access-Control-Expose-Headers "Content-Length,Content-Range" always;
}
+ location /nowplaying {
+ proxy_pass http://127.0.0.1:8000/status-json.xsl;
+
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+
+ proxy_http_version 1.1;
+ proxy_buffering off;
+ proxy_request_buffering off;
+
+ add_header Access-Control-Allow-Origin "*" always;
+ add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
+ add_header Access-Control-Allow-Headers "Content-Type" always;
+ }
+
location /admin {
deny all;
return 403;