Version 0.6.0 (2026-04-01)
Changes:
- add config validation option via Makefile
- add `default-http{,s}-port` commands to add_servers.py
- update add_servers.py to pass generic parameters to servers in templates
- add nginx_conf.d directory usage for more than one custom nginx configurations
- rename `port` and `ssl_port` to `http{,s}_port` for templates
- add `http{,s}_custom_params` to templates
This commit is contained in:
@@ -7,13 +7,17 @@ COPY servers.yaml /servers.yaml
|
||||
COPY domains.txt /domains.txt
|
||||
COPY nginx.conf.j2 /nginx.conf.j2
|
||||
|
||||
RUN python /add_servers.py --nginx-template /nginx.conf.j2 -o /nginx.conf --domains_list_txt /domains.txt --servers-config servers.yaml --certificates-path /ssl
|
||||
RUN python /add_servers.py --nginx-template /nginx.conf.j2 -o /nginx.conf --domains-list-txt /domains.txt --servers-config servers.yaml --certificates-path /ssl
|
||||
|
||||
# service
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
RUN apk add curl bash
|
||||
|
||||
COPY --from=builder /nginx.conf /etc/nginx/nginx.conf
|
||||
RUN rm -rf /etc/nginx/conf.d
|
||||
COPY nginx_conf.d /etc/nginx/conf.d
|
||||
COPY domains.txt /domains.txt
|
||||
|
||||
RUN echo "20 2 */7 * * nginx -s reload" > /etc/crontabs/root && \
|
||||
|
||||
Reference in New Issue
Block a user