第一步
修改config.json以设置isUseHTTPs:true:{
“ isUseHTTPs ”:true
}
第二步
将有效的证书路径设置为sslKey和sslCert:
{
“ isUseHTTPs ”:“ true ”,
“ sslKey ”:“ /home/ssl/domain.key ”,
“ sslCert ”:“ /home/ssl/domain.cert ”,
“ sslCabundle ”:“ ”
}
sslCabundle可以保持为空。如果没有.cabundle文件,则必须将其保留为空。
如果您没有SSL密钥/证书
sudo -s
apt-get安装软件属性-公共
add-apt-repository ppa:certbot / certbot
apt-get更新
apt-get安装python-certbot-apache
certbot --apache
certbot更新--dry-run
现在config.json看起来像这样:
{
“ isUseHTTPs ”:“ true ”,
“ sslKey ”:“ /etc/letsencrypt/live/domain.com/privkey.pem ”,
“ sslCert ”:“ /etc/letsencrypt/live/domain.com/fullchain.pem ”,
“ sslCabundle ”:“ ”
}
请注意
不要从中删除任何项目config.json。仅尝试修改值。即设置true为isUseHTTPs等
网友回复
如何将linux服务器的文件目录映射到windows电脑磁盘?
Docling 与 MarkItDown 两个库有啥不同?
豆包收费后国产其他ai软件也会跟进收费吗?
JPEG 与 HEIF图片格式区别?
centos7版本太旧无法安装python3.11,如何在docker中运行python3.11?
python如何做个RPA按键精灵的程序?
写一个windows的cmd的python代码如何在命令行中捕获获取复制粘贴的图片?
如何将别人爆款的抖音短视频短剧文案提取为seedance2的提示词?
阿里云域名dns云解析10万次日限额如何应对?
windows电脑如何提交上架ipa苹果应用?


