diff --git a/docker-compose.yml b/docker-compose.yml index 2d49f2e..7b2d7f1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -66,6 +66,7 @@ nginx: - "api:api" - "web:web" - "icecast:icecast" + - "radio:radio" volumes_from: - api icecast: @@ -85,4 +86,5 @@ radio: - "8888:8888" links: - "icecast:icecast" + - "api:api" diff --git a/nginx/sites-enabled/deepsouthsounds.com b/nginx/sites-enabled/deepsouthsounds.com index bcf1e2b..aaa0eb8 100644 --- a/nginx/sites-enabled/deepsouthsounds.com +++ b/nginx/sites-enabled/deepsouthsounds.com @@ -2,6 +2,13 @@ server { listen 80; server_name radio.deepsouthsounds.com; + location /a { + proxy_pass http://radio:8888; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location / { proxy_pass http://icecast:8000; proxy_set_header Host $host;