update 2024-04-22
Changes: - add jinja2 template engine instead of string-replacing - fix certbot cron usage - replace json servers configuration with yaml
This commit is contained in:
@@ -6,6 +6,8 @@ COPY nginx.conf /nginx.conf
|
||||
|
||||
RUN python /add_servers.py --nginx /nginx.conf --domains_list_txt /domains.txt --http-only
|
||||
|
||||
# service
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY proxy_common.conf /etc/nginx/proxy_common.conf
|
||||
@@ -14,7 +16,7 @@ COPY server_common.conf /etc/nginx/server_common.conf
|
||||
COPY --from=builder /nginx.conf /etc/nginx/nginx.conf
|
||||
COPY domains.txt /domains.txt
|
||||
|
||||
RUN echo "(sleep 60 && killall nginx) &" > /entrypoint && \
|
||||
RUN echo "(sleep 120 && killall nginx) &" > /entrypoint && \
|
||||
echo "cp /domains.txt /ssl/domains.txt" >> /entrypoint && \
|
||||
echo "nginx -g 'daemon off;'" >> /entrypoint && \
|
||||
echo "nginx" >> /entrypoint
|
||||
|
||||
Reference in New Issue
Block a user