mirror of
https://github.com/electerm/electerm-web.git
synced 2026-04-25 13:55:53 +03:00
[GH-ISSUE #8] nginx 反向代理 #6
Labels
No labels
bug
feature
need investigate
need investigate
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/electerm-web#6
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 @fnhchaiying on GitHub (Dec 23, 2023).
Original GitHub issue: https://github.com/electerm/electerm-web/issues/8
What feature you'd like to see or proposal(期望什么新功能/特性或者建议)
可使用nginx做反向代理,与其他服务共用域名和端口
例如:
已有域名:
http://test.com
添加后的访问方式变为:
http://test.com/electerm
我的nginx配置
@zxdong262 commented on GitHub (Dec 23, 2023):
可以试试在.env里设置
试试
@fnhchaiying commented on GitHub (Dec 23, 2023):
console中会有以下3个路径报404
GET https://test.com/favicon.ico 404 (Not Found)
GET https://test.com/api 404 (Not Found)
GET https://test.com/icons/ 404 (Not Found)
@fnhchaiying commented on GitHub (Dec 23, 2023):
这3个路径可能与其他程序的冲突
@zxdong262 commented on GitHub (Dec 23, 2023):
对于支持子路径,估计得改很多地方,如果你能控制域名解析,估计设个子域名解析更快
@zxdong262 commented on GitHub (Dec 23, 2023):
另外websocket情况也得验证下,总之目前还没有验证对于部署到服务器的支持
@fnhchaiying commented on GitHub (Dec 23, 2023):
感谢支持,我使用单独的端口来承载服务吧!