fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
85.34k stars 13.24k forks source link

[Feature Request] Enable dashboard behind a reverse proxy #4203

Closed rui8832 closed 5 months ago

rui8832 commented 5 months ago

Describe the feature request

Enable dashboard behind a reverse proxy:

I want my dashboard URL like: https://some.domain.com/frp/

My frps conf:

# frps.ini
[common]
bind_port = 7000

dashboard_port = 7500
dashboard_user = username
dashboard_pwd = password

My Nginx reserve proxy conf:

location /frp/ {
    proxy_http_version 1.1;
    proxy_set_header Host $host;
    proxy_set_header Connection "";
    proxy_pass http://192.168.0.2:7500/;
}

Now, it dosnot work.

Describe alternatives you've considered

No response

Affected area

rui8832 commented 5 months ago

I tried the fllowing Nginx reserve proxy conf and it works!

location /frp/ {
    proxy_http_version 1.1;
    proxy_set_header Host $host;
    proxy_set_header Connection "";
    proxy_pass http://192.168.0.2:7500/;
    proxy_redirect / /frp/;
}
GitHub4LP commented 3 weeks ago

Describe the feature request

Enable dashboard behind a reverse proxy:

I want my dashboard URL like: https://some.domain.com/frp/

My frps conf:

# frps.ini
[common]
bind_port = 7000

dashboard_port = 7500
dashboard_user = username
dashboard_pwd = password

My Nginx reserve proxy conf:

location /frp/ {
    proxy_http_version 1.1;
    proxy_set_header Host $host;
    proxy_set_header Connection "";
    proxy_pass http://192.168.0.2:7500/;
}

Now, it dosnot work.

Describe alternatives you've considered

No response

Affected area

  • [ ] Docs
  • [x] Installation
  • [ ] Performance and Scalability
  • [ ] Security
  • [ ] User Experience
  • [ ] Test and Release
  • [ ] Developer Infrastructure
  • [ ] Client Plugin
  • [ ] Server Plugin
  • [ ] Extensions
  • [ ] Others

how to make frps behind a reverse proxy @rui8832