1.上传证书
将证书放到 /opt/jumpserver/config/nginx/cert
2.关闭 JumpServer 服务
cd /opt/jumpserver-offline-installer-v2.26.1-amd64-93/
./jmsctl.sh stop
3.修改配置文件
vi /opt/jumpserver/config/config.txt
...
Nginx 配置
HTTP_PORT=80
SSH_PORT=2222
RDP_PORT=3389
HTTPS 配置
USE_LB=1 # 1 表示开启此选项
HTTPS_PORT=443 # 对外 https 端口, 默认 443
SERVER_NAME=jumpserver.com # 你的 https 域名
SSL_CERTIFICATE=jumpserver.pem # /opt/jumpserver/config/nginx/cert 目录下你的证书文件
SSL_CERTIFICATE_KEY=jumpserver.key # /opt/jumpserver/config/nginx/cert 目录下你的 key 文件
2.启用 JumpServer 服务
./jmsctl.sh start