https://hub.docker.com/r/steveltn/https-portal
https://github.com/SteveLTN/https-portal
docker run -d --name https --hostname https -p 443:443 --restart always -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro --privileged=true --user=root -e TZ='Asia/Shanghai' -e DOMAINS='icons.htmltoo.com -> http://127.0.0.1:80, img.htmltoo.com -> http://127.0.0.1:80, tongji.htmltoo.com -> http://127.0.0.1:80, abc.htmltoo.com -> http://127.0.0.1:80, f.htmltoo.com -> http://127.0.0.1:80, b.htmltoo.com -> http://127.0.0.1:80, static.htmltoo.com -> http://127.0.0.1:80, s3.htmltoo.com -> http://172.18.0.11:9011|http://172.18.0.12:9011, s3web.htmltoo.com -> http://172.18.0.11:9010|http://172.18.0.12:9010' -e STAGE='production' -e WEBSOCKET='true' -e CLIENT_MAX_BODY_SIZE='0' -v /data/site/docker/data/https-portal:/var/lib/https-portal -e RENEW_MARGIN_DAYS='15' steveltn/https-portal
-https
docker run -d --name https --hostname https -p 443:443 --restart always -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro --privileged=true --user=root -e TZ='Asia/Shanghai' --network mgr --ip 172.18.0.3 -e DOMAINS='icons.htmltoo.com -> http://nginx:80, img.htmltoo.com -> http://nginx:80, tongji.htmltoo.com -> http://nginx:80, b.htmltoo.com -> http://nginx:80, s3.htmltoo.com -> http://nginx:80, f.htmltoo.com -> http://nginx:80' -e STAGE='production' -e WEBSOCKET='true' -e CLIENT_MAX_BODY_SIZE='0' -v /data/site/docker/data/https-portal:/var/lib/https-portal -e RENEW_MARGIN_DAYS='15' --link nginx steveltn/https-portal
-
docker run -d --name https --hostname https -p 443:443 --restart always -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro --privileged=true --user=root -e TZ='Asia/Shanghai' --network mgr --ip 172.18.0.3 -e DOMAINS='abc.htmltoo.com -> http://quic:80' -e STAGE='production' -e WEBSOCKET='true' -e CLIENT_MAX_BODY_SIZE='0' -v /data/site/docker/data/https-portal:/var/lib/https-portal -e RENEW_MARGIN_DAYS='15' --link quic steveltn/https-portal
chmod -R 777 /data/site/docker/data/https-portal/
cp abc.htmltoo.com/production/domain.key /data/site/docker/env/nginx/nginx/conf.d/cert/abc.htmltoo.com.pem
cp abc.htmltoo.com/production/signed.crt /data/site/docker/env/nginx/nginx/conf.d/cert/abc.htmltoo.com.key
docker restart nginx
-
DOMAINS='docs.mycompany.com -> http://outline:3000'
DOMAINS='hexo.example.com, octopress.example.com'
-
DOMAINS='example.com'
-https://example.com/foo/bar会被301重定向到https://target.example.com/foo/bar
DOMAINS: 'example.com => https://target.example.com'
-
DOMAINS: 'wordpress.example.com -> http://wordpress:80, gitlab.example.com
-
DOMAINS: 'wordpress.example.com -> http://wordpress1:80|wordpress2:80[weight=2 max_conns=100]
-证书
/var/lib/https-portal
-默认静态地址
/var/www/vhosts
-提前15天续订
RENEW_MARGIN_DAYS=15