update 2025-04-06
Changes: - fix README.md old json format usage - rename "redirect" option to "proxy_pass" - move docker-compose.yml and nginx.conf.j2 to examples and add to .gitignore - fix situation when one domain from domains.txt and servers.yaml appeared twice in nginx.conf
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM python:3.11-alpine as builder
|
||||
FROM python:3.11-alpine AS builder
|
||||
|
||||
RUN pip3 install --no-cache-dir pyyaml jinja2
|
||||
|
||||
@@ -16,12 +16,11 @@ FROM nginx:alpine
|
||||
COPY --from=builder /nginx.conf /etc/nginx/nginx.conf
|
||||
COPY domains.txt /domains.txt
|
||||
|
||||
RUN echo "16 2 */7 * * nginx -s reload" > /etc/crontabs/root && \
|
||||
RUN echo "20 2 */7 * * nginx -s reload" > /etc/crontabs/root && \
|
||||
\
|
||||
echo "cp /domains.txt /ssl/domains.txt" > /entrypoint && \
|
||||
echo "crond" >> /entrypoint && \
|
||||
echo "nginx -g 'daemon off;'" >> /entrypoint && \
|
||||
echo "nginx" >> /entrypoint
|
||||
echo "nginx -g 'daemon off;'" >> /entrypoint
|
||||
|
||||
ENTRYPOINT ["/bin/sh"]
|
||||
CMD ["/entrypoint"]
|
||||
|
||||
Reference in New Issue
Block a user