mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #2289] [MERGED] Support reverseproxy to dashboard with additional parts in path. #4545
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4545
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?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/2289
Author: @YK-Samgo
Created: 3/10/2021
Status: ✅ Merged
Merged: 3/19/2021
Merged by: @fatedier
Base:
dev← Head:dev📝 Commits (1)
4ade872web/frps:📊 Changes
11 files changed (+15 additions, -13 deletions)
View changed files
📝
assets/frps/static/index.html(+1 -1)📝
assets/frps/static/manifest.js(+1 -1)📝
assets/frps/static/vendor.js(+1 -1)📝
assets/frps/statik/statik.go(+3 -1)📝
web/frps/src/components/Overview.vue(+1 -1)📝
web/frps/src/components/ProxiesHttp.vue(+2 -2)📝
web/frps/src/components/ProxiesHttps.vue(+2 -2)📝
web/frps/src/components/ProxiesStcp.vue(+1 -1)📝
web/frps/src/components/ProxiesTcp.vue(+1 -1)📝
web/frps/src/components/ProxiesUdp.vue(+1 -1)📝
web/frps/src/components/Traffic.vue(+1 -1)📄 Description
The dashboard may fail to open with url like this:
https://www.abc.com/frps/static/#/
Because vendor.js call /api/serverinfo as absolute path. In the example, https://www.abc.com/api/serverinfo
Replace /api/ in vendor.js with ../api/ so that it call the api with a workable path. In the example above, it actually calls https://www.abc.com/frps/api/serverinfo, which can be correctly reverse proxyed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.