saltbo / zpan

A self-hosted cloud disk base on the cloud storage./ 一个基于云存储的网盘系统,用于自建私人网盘或企业网盘。
https://zpan.space
GNU General Public License v3.0
1.83k stars 236 forks source link

feat: support auto https #27 #42

Closed lxm closed 3 years ago

lxm commented 3 years ago

implement #27

config add:

server:
  domain:
    - example1.com
    - example2.com
  port: 8222
  sslport: 443

tls:
  enabled: true
  auto: true
  cacheDir: /opt/
  certPath: "/etc/domain/cert.pem"
  certkeyPath: "/etc/domain/cert.key"

sslport only support 443 for now

codecov[bot] commented 3 years ago

Codecov Report

Merging #42 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #42   +/-   ##
=======================================
  Coverage   37.72%   37.72%           
=======================================
  Files           7        7           
  Lines         281      281           
=======================================
  Hits          106      106           
  Misses        152      152           
  Partials       23       23           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9c1721d...4a7db66. Read the comment docs.

saltbo commented 3 years ago

Please add the documentation about this feature.