Skip to content

Issues setting this up with Nginx Proxy Manager instead of Caddy #298

Closed Answered by loof2736
loof2736 asked this question in Help
Discussion options

You must be logged in to vote

Ok I was able to get it working without the caddy container. This is the config that worked for me (Might be worth adding to the documentation? I know nginx proxy manager is pretty popular):

Same docker compose as above, so caddy removed and port 3301 and 80 opened

Create the proxy host like normal, then add this under the "Custom locations" tab. Note the forward slash after the IP, that is important

In the "Advanced" tab, add this:

location = /api {
    return 301 /api/;
}

The trailing slash in the custom location is essentially the "uri strip_prefix /api" line in the caddy config, and the config under "advanced" is the "redir /api /api/" line

This might have been obvious to someone wh…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by loof2736
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants