tivix / docker-nginx Goto Github PK
View Code? Open in Web Editor NEWNginx docker image with dynamic settings
Nginx docker image with dynamic settings
Something like this in docker-entrypoint.sh
if [[ "${LETSENCRYPT}" == "true" ]]; then
echo "Installing Certbot"
apk add --no-cache certbot \
&& certbot certonly --standalone --agree-tos -m "${CERTBOT_EMAIL}" -n -d ${DOMAIN_LIST} \
&& echo "certbot renew --dry-run --nginx >> /var/log/cron.log 2>&1" >/etc/periodic/daily/certbot-renew
# run crond in the background with a log level of 8
crond -b -l 8
fi
Then
{%- if LETSENCRYPT == 'true' and NGINX_SERVER_NAME %}
server_name {{ NGINX_SERVER_NAME }};
listen 0.0.0.0:{{ env('NGINX_HTTPS_PORT', '443') }} ssl;
ssl_certificate /etc/letsencrypt/live/{{ NGINX_SERVER_NAME }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ NGINX_SERVER_NAME }}/privkey.pem;
{%- endif %}
In site.conf
?? Something to consider
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.