Comment on Beginners Questions about Audiobookshelf, DNS and nginx
communism@lemmy.ml 2 days ago
You get a domain name, and use an A record to point it towards your server’s public IP address.
You tell nginx to forward requests to a given domain. For instance, you could tell nginx to forward requests to foo.bar.com to 127.0.0.1:1337. To do this:
http { server { server_name foo.bar.com; listen 80; location / { proxy_pass http://127.0.0.1:1337$request_uri; } } }
Note that this is a very basic setup that doesn’t have HTTPS or anything. If you want an SSL certificate, look into Let’s Encrypt and Certbot.
Also, the service you’re hosting (which I’m not familiar with) may have an example reverse proxy config you should use as a starting point if it exists.
TheBlindPew@lemmy.dbzer0.com 2 days ago
Ive got a reverse proxy config that was available in the Audiobookshelf github documentation, I was mainly struggling to understand how to get all of the parts working together. Thanks for the help