[GH-ISSUE #4203] [Feature Request] Enable dashboard behind a reverse proxy #3310

Closed
opened 2026-05-05 14:08:08 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @rui8832 on GitHub (May 7, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4203

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
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @rui8832 on GitHub (May 7, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4203 ### 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
Author
Owner

@rui8832 commented on GitHub (May 7, 2024):

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/;
}
<!-- gh-comment-id:2098114265 --> @rui8832 commented on GitHub (May 7, 2024): 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/; } ```
Author
Owner

@GitHub4LP commented on GitHub (Sep 18, 2024):

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
  • 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

<!-- gh-comment-id:2358266698 --> @GitHub4LP commented on GitHub (Sep 18, 2024): > ### 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3310
No description provided.