Comment on Is it possible to run a reverse proxy only on a specific service or port?

foster@lemmy.fosterhangdaan.com ⁨1⁩ ⁨month⁩ ago

First of all, doesn’t Navidrome have authentication? So, I don’t see why exposing it to the public is a problem.

Second, some reverse proxies support basic auth. This way, you can have authentication at the proxy level and is useful of the service does not support it. Here as an example snippet for Caddy:

example.com {
	basic_auth {
		# Username "Bob", password "hiccup"
		Bob $2a$14$Zkx19XLiW6VYouLHR5NmfOFU0z2GTNmpkT/5qqR7hx4IjWJPDhjvG
	}
	reverse_proxy myservice:8000
}

You’ll have to look up the docs for other reverse proxies.

source
Sort:hotnewtop