-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
配置https #84
Comments
如果遇到IP連線用http,domain連線用https vim static/c_websocket.js
let socket = new WebSocket('ws://' + window.location.host + '/ws/');
修改为:
let protocol = 'ws://';
if (window.location.protocol === 'https:') {
protocol = 'wss://';
}
let socket = new WebSocket(protocol + window.location.host + '/ws/'); vim templates/sqlquery/sql_query.html
let socket = new WebSocket('ws://' + window.location.host + '/ws/');
修改为:
let protocol = 'ws://';
if (window.location.protocol === 'https:') {
protocol = 'wss://';
}
let socket = new WebSocket(protocol + window.location.host + '/ws/'); vim templates/webshell/webssh.html
sock = new WebSocket('ws://' + window.location.host + '/ssh/'),
修改为:
let protocol = 'ws://';
if (window.location.protocol === 'https:') {
protocol = 'wss://';
}
let cmd = '',
status = '',
sock = new WebSocket(protocol + window.location.host + '/ssh/'), apache config
|
感谢,代码已经merge,谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
该系统支持配置https支持,需要手动修改如下代码:
https流程:
web --> https(自己部署的ssl证书) --> docker(nginx)
The text was updated successfully, but these errors were encountered: