I am trying to set up a web radio environment called AzuraCast. I'm using a provided docker installation script which sets up multiple containers:
- a web server container
- a "stations" container
- an nginx proxy which is supposed to work as a so-called reverse proxy to access the web container
- a mariadb container
- and some other stuff which is not of interest for now.
On my server I am running an apache2 docker container (php:apache
) which I have set up reverse proxies on to access other docker containers I have installed (e.g. nextcloud, airsonic, ...):
<IfModule mod_ssl.c>
<VirtualHost *.443>
# ...
ProxyPass /audio http://airsonic:4040/audio
ProxyPassReverse /audio http://airsonic:4040/audio
ProxyPass /nextcloud http://nextcloud
ProxyPassReverse /audio http://nextcloud
ProxyPass /git http://git:3000
ProxyPassReverse /git http://git:3000
# ...
</VirtualHost>
</IfModule>
Now, when I want to access the web container of the AzuraCast installation, on my server I only need to access http://localhost:8298 (8298 being the HTTP port I am using since 80 is already being used by my apache2 container). However, if I want to create a reverse proxy for the AzuraCast web frontend I would assume I just had to add
# since the container-internal HTTP port from the nginx proxy is still 80, there's no need to specify a port here
ProxyPass /radio http://azuracast_nginx_proxy_1
ProxyPassReverse /radio http://azuracast_nginx_proxy_1
However, when I'm now trying to access the AzuraCast backend via my reverse proxy at https://my.domain/radio, I am able to access the page but none of the pictures or links work which makes me wonder if there's something like a context path needed or if maybe the proxy pass hasn't been configured correctly. here's what the backend looks like:
And here is what it's supposed to look like:
Now my question is:
Am I supposed to set something like an environment variable? Neither links nor pictures work because the backend proxy does not add the /radio
path to the links provided by the website so the path which is supposed to look like this https://my.domain/radio/login
only looks like this https://my.domain/login
.
Thanks a lot in advance.