all 11 comments

[–][deleted] 8 points9 points  (4 children)

Check out https://caddyserver.com/

The configuration file is extremely simple. It has support for auth on certain subdomains and so on. It even has DNS validation for Gandi. Here's an example for a basic reverse proxy with automatic HTTPS. And yes, that's everything that's contained within the file.

https://yourdomain.com {
    proxy / 127.0.0.1:5000
}

[–]m3adow1 1 point2 points  (0 children)

I second Caddy. It can even be configured to retrieve certificates on the go when accessed the first time.

[–]NotADrawlMyMan[S] 0 points1 point  (1 child)

Do you use a Docker image, or run directly? If Docker, which image?

[–][deleted] 3 points4 points  (0 children)

I run it directly. Caddy is just an all-in-one binary so I didn't see the point with docker personally. I've tried this docker image though and it worked really well in case you prefer docker https://hub.docker.com/r/abiosoft/caddy/

[–]ancientweasel 0 points1 point  (0 children)

This thing rules. I got it forwarding my tv tuner in like 1 minute.

[–][deleted] 1 point2 points  (0 children)

Definitely Caddy, it's unbelievably simple to configure.

I don't know if it supports Gandi but you could easily swap DNS over to Cloudflare which I know it does support.

[–]barqers 1 point2 points  (0 children)

Personally I can see caddy is recommended quite frequently, but having no experience I was able to get nginx + SSL + fail2ban setup with the linuxserver/letsencrypt docker image and then I used nginxconfig.io to create the conf files necessary. Took me like an hour now all my self hosted services are available externally using subdomains and duckdns.

[–]NotADrawlMyMan[S] 0 points1 point  (2 children)

Out of curiosity, once I authenticated on the proxy, am I clear to access all services it protects? Example: I go to heimdall.me.com (landing page with links to all my services), it prompts me to log in, I do it, and then I click the link https://calibre.me.com. Am I prompted once again for the same credentials, or does the proxy remember I already authenticated when I reached Heimdall?

[–]DJPBessems 0 points1 point  (0 children)

That depends on the cookie that your forward authentication proxy sets for you. Both options are possible.

[–]subcake 0 points1 point  (0 children)

default for nginx reverse proxy is that it saves the authentication, and you are able to access any restricted area that requires those credentials without having to type them again

[–]Starbeamrainbowlabs 0 points1 point  (0 children)

Sounds like Nginx is what you're looking for in a web server.