-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to enable SSL? #65
Comments
Ok, I just found an option on the settings page (debug Ampache). On generate config file I download a file where I can change a reverse proxy setting (force_ssl = "true"), that I think is what I'm looking for. The problem is once I change this setting, I don't know how to upload my new generated file. The 2nd link (write config file), just opens "Browse Ampache", with no option to actually upload a config file... How can I change this setting to enable a reverse HTTPS proxy on my NAS? Thanks again for the help, |
Hey @MuadDibIII, sounds like you're interested in using a reverse proxy. I highly recommend this route if you'd like to use SSL with Ampache. There is actually no other configuration that needs to be done with the Ampache config file. I would recommend just setting your reverse proxy to redirect http to https if it doesn't already. If you would like some config examples I may be able to provide some. |
Hej, I am actually trying to do that. I already have an apache2 server running for some other stuff (not in docker) but I am not sure how to configure and enable a reverse proxy (I spent quite some time trying). So some config examples might help me ! |
do you have an ssl cert? this is my (sort of) template for the proxy (unironically called ssl-proxy-example.conf)
|
this is sort of what gets generated by certbot when making ssl certs for letsecnrypt, i've commented things out that might not be there for you but if you can paste into the available sites
then enable the site
and then reload
|
Thanks for the support guys. After a couple of attempts, it was messing with other software/services I am hosting and serving with Apache2 on the same Pi. So I actually changed from mpache-docker to "just Ampache" (no docker) and now it runs as I wanted. Sorry, my lack of skills-knowledge with Apache2 / Reverse Proxy / SSL to blame ! :) |
For Docker, the easiest way to setup https is to use a reverse proxy / edge router like Traefik. I understand it can be a pain with a Raspberry Pi. Apache or Nginx installed locally can be used as https reverse proxy for docker containers with something like acme.sh to generate SSL certificates, but it imply to expose docker port on localhost only (opened only for 127.0.0.1). |
Hello,
I just installed Ampache on my synology NAS (with Docker), and I can't see a way to enable SSL.
I have my own domain and a Let's Encrypt certificate, but I can't see the option to set the SSL port anywhere on the settings page.
If it's not possible to do it on the web UI, is there any configuration file that I can make the change?
Thanks in advance for all your help,
Best regards,
Marc
The text was updated successfully, but these errors were encountered: