always generate new certs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
quackerd 2021-08-16 01:38:09 +08:00
parent 4c4358f0ec
commit 73d1a09b39
3 changed files with 2 additions and 4 deletions

View File

@ -7,13 +7,12 @@ RUN set -xe && apk add --no-cache unzip wget nginx certbot openssl
# setup core files
RUN set -xe && mkdir -p /opt/xray && \
ln -s /opt/config/certs /etc/letsencrypt && \
unzip /opt/Xray-linux-64.zip -d /opt/xray && \
rm /opt/Xray-linux-64.zip && \
chmod +x /opt/run.sh /opt/crypt.sh
# crond
RUN set -xe && mv /opt/crontab /var/spool/cron/crontabs/root
# RUN set -xe && mv /opt/crontab /var/spool/cron/crontabs/root
# nginx
RUN set -xe && addgroup www && \

View File

@ -1 +1 @@
0 */24 * * * certbot renew
# 0 */24 * * * certbot renew

View File

@ -6,7 +6,6 @@ source /opt/crypt.sh
mkdir -p /opt/config
mkdir -p /opt/config/logs
mkdir -p /opt/config/certs
mkdir -p /opt/config/logs/nginx
mkdir -p /opt/config/logs/xray
mkdir -p /opt/config/logs/crond