手动Caddy使用NginxSSL将http转https

  1. 腾讯云上申请免费SSL,下载到服务器

  2. 配置Caddyfile文件
    tls后加pem文件的绝对地址 key文件的绝对地址,代理网址改为https

    1
    2
    reverse_proxy localhost:8090
    tls <prm绝对路径>空格<key绝对路径>
  3. 重启caddy

    1
    service caddy restart
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.

扫一扫,分享到微信

微信分享二维码
  • Copyrights © 2022-2023 Junto
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信