1. Docker 代理设置

临时设置代理拉取镜像

docker pull --proxy-http="http://192.168.10.185:7890" --proxy-https="http://192.168.10.185:7890" enwaiax/x-ui:latest

通过环境变量设置代理

export http_proxy="http://192.168.10.185:7890"
export https_proxy="http://192.168.10.185:7890"
export NO_PROXY="localhost,127.0.0.1,你的内部网络地址"

docker pull 镜像名称:标签

取消代理

unset http_proxy
unset https_proxy
docker pull 镜像名称:标签

. Certbot 申请 SSL 证书

sudo certbot --nginx -d xui.755855.xyz

测试文件路径:
http://xui.755855.xyz/.well-known/acme-challenge/test.txt

标签: none

添加新评论