Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

[Feature Request] Proxy Support #30

Closed
mrjester888 opened this issue May 25, 2020 · 7 comments
Closed

[Feature Request] Proxy Support #30

mrjester888 opened this issue May 25, 2020 · 7 comments

Comments

@mrjester888
Copy link

I run a bunch of services on a single VM and exposed them on 443 with nginx. Requestrr fails with this message:

warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect.

Google indicates that the app server needs to be coded to support proxied traffic.

@coder8338
Copy link

Also having an issue with this, using a basic nginx proxy config with:

        location /requestrr {
                 proxy_pass http://127.0.0.1:4545;
        }

However as there's no option to set the baseurl in requestrr, it's trying to serve all JS on /.

I've looked at a few options of setting the baseurl in system.webServer but so far nothing has worked.

@chxseh
Copy link

chxseh commented Jul 1, 2020

Use sub domains. Proxy's to a "sub folder" cause so many problems, just add a subdomain.

@coder8338
Copy link

@ChaseHall unfortunately that's not an option with my setup

@darkalfx
Copy link
Owner

darkalfx commented Dec 5, 2020

This bug has been fixed in v1.0.14, you can now configure a base url with https for Requestrr.
I'm therefore closing this issue!

@darkalfx darkalfx closed this as completed Dec 5, 2020
@drpoutine
Copy link

drpoutine commented Dec 31, 2020

This bug has been fixed in v1.0.14, you can now configure a base url with https for Requestrr.
I'm therefore closing this issue!

running v1.0.14. its not fixed.


Dec 31 21:26:05 server Requestrr.WebApi[2543587]: warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Dec 31 21:26:05 server Requestrr.WebApi[2543587]:       Failed to determine the https port for redirect.

Do you have "Configure for HTTPS" checked in project settings?

forgot to mention. Web GUI loads. But auth doesnt work 🤔

@darkalfx
Copy link
Owner

Requestrr itself doesnt support HTTPS, however it now supports being behind an HTTPS reverse proxy.

The proxy would handle the HTTPS, not Requestrr directly.

@brettpetch
Copy link

brettpetch commented Jan 12, 2021

Install requestrr for linux, as described in the wiki. Start the service to generate a sample config
Stop the requestrr service.
In /opt/requestrr/config/settings.json: close to the end of the file, set "BaseUrl":"/requestrr"

nginx config (swizzin tested): /etc/nginx/apps/requestrr.conf

location /requestrr {
  proxy_pass        http://127.0.0.1:4545/requestrr;
  proxy_set_header Host $proxy_host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_redirect off;
}

sudo service nginx reload
start the requestrr service again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants