ampache / ampache-docker

Ampache docker package
http://ampache.org
94 stars 68 forks source link

Reverse proxy for Apache? #111

Open gerroon opened 11 months ago

gerroon commented 11 months ago

Hi

Does anyone have a working reverse proxy setup for Apache2 that will also work with the Subsonic API? Do you mind sharing your config?

guss77 commented 1 month ago

I'm running the Ampache service using the docker configuration, with their port mapped to 127.0.0.1:4040 (Subsonic legacy) and then I have this Apache site configuration, with the mod_md module for Let's Encrypt certificates:

<MDomain music.geek.co.il>
        MDRequireHttps permanent
</MDomain>

<VirtualHost *:80>
        ServerName music.geek.co.il
        DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost *:443>
        ServerName music.geek.co.il
        ServerAdmin oded@geek.co.il
        SSLEngine on
        DocumentRoot /var/www/html

        ProxyPreserveHost On
        ProxyRequests Off
        ProxyVia On

        ProxyPass / http://127.0.0.1:4040/
        ProxyPassReverse / http://127.0.0.1:4040/
</VirtualHost>