mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1071] Allow dashboard over same port #843
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#843
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 @luckydonald on GitHub (Jan 31, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1071
Feature Request.
Currently, we can already combine
vhost_http_portandbind_port, as the websocket uses/~!frpas route.It would be great to be able to attach the admin interface to the same port at e.g.
/dashboard.It could look like the following:
Notice the new
dashboard_routeelement.Also a
dashboard_hostcould be helpful, to use theHostheader.My current config
You know, for completeness sake.
server.ini:client.ini:Obviously the used password is fake :D
But it would be so cool!
@fatedier commented on GitHub (Feb 1, 2019):
I have considered this feature and the problem is how to distinguish dashboard requests from
v_host_httpport requests. Your proposal withdashboard_routewill affect the dashboard api prefix which is/api/xxxnow. I'm not sure if it's simple and stable to allow users redefine it. As you know, dashboard js code will call these apis with hardcode api prefix.Also in some cases, owners only want to bind dashboard port with a local address such as
127.0.0.1。dashboard_addrcan be different withbind_addr.We may need a more reliable solution.
@luckydonald commented on GitHub (Feb 1, 2019):
Maybe we could change the (default) API endpoint to
/~!api/to minimize collision.The javascript could define and use a global variable
var API_URL = 'http://example.com/~!api'. This could inserted in a server template, or something.and
@luckydonald commented on GitHub (Feb 1, 2019):
An alternative to rendering a template with the dashboard url could be asking the already existing
/~!frpwebsocket for it.@fatedier commented on GitHub (Feb 2, 2019):
The websocket url prefix
/~!frpis only used between frpc and frps, no one will see that./ ~!api/looks strange for users that they will used it to call the apis.The dashboard homepage is
http://127.0.0.1:7500, no prefix.@ogimenezb commented on GitHub (Feb 21, 2019):
How about using a config like:
best of both worlds