mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-03-02 22:57:22 -05:00
[BUG]: Prowlarr forces URL rewrite behind reverse proxy #233
Labels
No labels
Area: API
Area: Database
Area: Db-migration
Area: Download Clients
Area: Indexer
Area: Metadata API
Area: Notifications
Area: Tooling
Area: UI
Area: Update API
Priority: High
Priority: Low
Priority: Medium
Status: Cannot Reproduce
Status: Confirmed
Status: Help Wanted
Status: In Progress
Status: Indexer - need invite
Status: Info Needed
Status: Investigating
Status: Logs Needed
Status: Maybe One Day
Status: Needs Triage
Status: Unlikely
Status: Waiting for OP
Status: Won't Fix
Type: Bug
Type: Bug
Type: Documentation
Type: Duplicate
Type: Enhancement
Type: External Bug
Type: Feature Request
Type: Regression
Type: Support
Type: Support.
lidarr-pull
radarr-pull
sonarr upstream
sonarr-pull
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Prowlarr#233
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @justsem on GitHub (Aug 5, 2021).
Is there an existing issue for this?
Current Behavior
In my case I have this setup:
Sidenote: I have Sonarr, Radarr and Lidarr configured in the exact same way without any issues
A Debian 11 installation with Prowlarr in a netns (network namespace) in which an interface with IP 10.13.38.2 is available.
Using Systemd Prowlarr will be assigned to said netns in which it binds neatly to 10.13.38.2.
Nginx is configured to reverse-proxy to Prowlarr using the
locationblocks provided in the WikiIt's important to note that I can't directly reach the 10.13.38.x range from my browser. Instead I point it to https://my.prowlarr.domain.name which will connect to nginx.
This is where it gets weird. Along the way some rewriting in the URL gets done, which I believe is being done by Prowlarr. This rewrites the url to http://10.13.38.2, instead of the URL I initially pointed my browser to.
Setting the logging to debug or even trace does not yield any valuable information when it comes to this.
I'm not sure if this can be resolved by some configuration directive, but I couldn't find any documentation on supported directives in the Config.xml file.
This same behaviour occurs when I remove the netns configuration.
Expected Behavior
In expected behaviour the URL should not be rewritten to Prowlarr's bind-address but instead remain as the actually requested URL.
Steps To Reproduce
Environment
What branch are you running?
Develop
Anything else?
prowlarr.trace.txt
config.xml.txt
AB#1391
@bakerboy448 commented on GitHub (Aug 5, 2021):
fairly certain this is an NGINX configuration issue not a Prowlarr app redirect issue.
The only way this would be a Prowlarr bug is if there is a missed commit/pull from Radarr that resolved this type of issue.
The sample Prowarr conf on the wiki does not work for a subdomain. I'd suggest using the radarr conf you're using and tweaking it accordingly.
@justsem commented on GitHub (Aug 5, 2021):
It turns out you were right. I initially copied the radarr config file which had a different value in the Host header which gets forwarded. Editing the value for the host header fixed it.
For additional info, the error only occured when requesting
/when I'd request/loginthe issue would not occur.