Skip to content

Commit

Permalink
small modification
Browse files Browse the repository at this point in the history
  • Loading branch information
manjieqi committed Apr 15, 2024
1 parent 11cd378 commit e1ea17a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ COPY geoip2.conf /etc/nginx/modules/

# 设置Python包的镜像源,并安装zope和certbot-dns-dnspod
RUN source /opt/certbot/bin/activate && \
# pip config set global.index-url https://mirrors.tencentyun.com/pypi/simple && \
pip install --no-cache-dir zope certbot-dns-dnspod && \
pip config set global.index-url https://mirrors.tencentyun.com/pypi/simple && \
deactivate

# 更改apt源为腾讯云源
# RUN sed -i "s@http://deb.debian.org@https://mirrors.tencentyun.com@g" /etc/apt/sources.list.d/debian.sources
RUN sed -i "s@http://deb.debian.org@https://mirrors.tencentyun.com@g" /etc/apt/sources.list.d/debian.sources
3 changes: 2 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ services:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
environment:
- DISABLE_IPV6=true
- TZ=Asia/Shanghai
- DISABLE_IPV6=true
networks:
- nginx
restart: unless-stopped
Expand All @@ -26,6 +26,7 @@ services:
volumes:
- ./data/geoip2:/usr/share/GeoIP
environment:
- TZ=Asia/Shanghai
- GEOIPUPDATE_ACCOUNT_ID=******
- GEOIPUPDATE_LICENSE_KEY=****************************************
- 'GEOIPUPDATE_EDITION_IDS=GeoLite2-City GeoLite2-Country GeoLite2-ASN'
Expand Down

0 comments on commit e1ea17a

Please sign in to comment.