Cannot Get Tinyauth Redirection Working with NPM #574
-
|
Good morning, all. Over the last few weeks of holidays, I have gone from running a bare metal Home Assistant server on a NUC, to a number of self-hosted Docker hosted Apps, to a Proxmox VE host and my Docker in a VM, but none of these upgrades has baffled me for as long as trying to get TinyAuth working! I tried Tinyauth originally in its own Arcane project (like a Portainer stack) and when I didn't have any joy, I tried the following options in turn without success:
I eventually ended up with exactly the example from Tinyauth's website with NPM, a minimal NginX container and Tinyauth in the same project, but still no luck. My App and Tinyauth are both on the same domain in their proxy hosts (app.mydomain.net and tinyauth.mydomain.net) and both work independently, but when I put the NPM configuration in the Advanced tab of the App's proxy host entry, I get a "500 Internal Server Error" message when trying to open app.mydomain.net. I have tried this in a private window in my browser (Safari) so I know it's not a cache issue. The only things I'm changing at all in the NPM configuration from the example, during my testing, are:
I'm stuck with NPM over other reverse proxies like Caddy or Traefik because I'm using DNS challenge to a cPanel server to get my wildcard SSL cert, which only NPM seems to support. I've searched for similar issues and have tried their suggested solutions ("Block Common Exploits" option disabled in the Tinyauth proxy host entry, caching issues, etc), so I'm baffled and spending more time on this than my wife is happy with! Any suggestions would be gratefully received. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
This usually suggests that either Tinyauth is not running correctly or NPM cannot reach it. You can start debugging by entering into the NPM container with |
Beta Was this translation helpful? Give feedback.
You should not modify the advanced config proxy pass. You should have: