spug icon indicating copy to clipboard operation
spug copied to clipboard

/不能用的情况下,改哪里可以解决访问/ssh报404的问题

Open akinlau opened this issue 2 years ago • 2 comments

因为项目已经占用了 http://1.1.1.1/,所以需要改成 http://1.1.1.1/spug 这样来访问,build下面的静态页面那些我已经都改好了,测试访问也是正常的,但是点击web终端时链接跳转到 http://1.1.1.1/ssh 报404,想问一下 http://1.1.1.1/ssh 这个链接可以改哪里或者说要怎么改才能不报404

akinlau avatar Mar 31 '22 16:03 akinlau

这个要改源代码重新编译,spug_web/src/pages/host/index.js 27行, 不过这样改后续就无法自动升级了。 建议你看看能否通过 nginx 的url重写来解决。

vapao avatar Apr 01 '22 00:04 vapao

如果是通过url重写的话,我需要将/ssh重写到/api吗还是/spug?

akinlau avatar Apr 02 '22 05:04 akinlau