this post was submitted on 13 Nov 2023
2 points (100.0% liked)

Self-Hosted Main

515 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

Hello,

Super new to self hosting in general.

I have been dabbling with self hosting some services. I have setup a VM with Nginx Proxy Manager and Authentik in docker containers and Cloudflare tunnel on the VM.

I believe everything is configured properly. I have port forwarded 80 and 443 just to test the setup and everything works fine. NPM sends me to Authentik to authenticate then on the the requested service.

As soon as i close the ports and transfer to cloudflare tunnel things start to break. I can still access any services I dont have running through authentik perfectly fine, however if i add the authentik config to a proxy host, it sends me to the authentication page as usual however upon logging me in it redirects me infinitly to the login page. I can see my url changing to the requested service but it just keeps sending me back.

Does anyone have a similar setup and can guide me into how to resolve this? I do not really want to have the ports forwarded on my network and would prefer to continue using the cloudflare tunnel.

Cheers!

you are viewing a single comment's thread
view the rest of the comments
[–] indykoning@alien.top 1 points 1 year ago

If I had to guess maybe trusted proxies haven't been configured for Cloudflare preventing the Auth token from being accepted