-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Armadillidiid/feat/improved-ssl-acquisitio…
…n-compose-setup Feat/improved ssl acquisition compose setup
- Loading branch information
Showing
8 changed files
with
895 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,2 @@ | ||
FROM nginx:1.25.4 | ||
|
||
# Set the working directory | ||
WORKDIR / | ||
|
||
# Add cron job to reload nginx every 24 hours | ||
RUN echo "0 0 * * * root docker exec -it nginx nginx -s reload" > /etc/cron.d/nginx-job | ||
|
||
# Download extra SSL configuration files | ||
RUN curl -s https://raw.githubusercontent.com/certbot/certbot/master/certbot-nginx/certbot_nginx/_internal/tls_configs/options-ssl-nginx.conf > /options-ssl-nginx.conf && \ | ||
curl -s https://raw.githubusercontent.com/certbot/certbot/master/certbot/certbot/ssl-dhparams.pem > /ssl-dhparams.pem | ||
|
||
# Set the default environment variable | ||
ARG IS_SSL_ACQUIRED | ||
|
||
# Create a directory for template files | ||
RUN mkdir -p /etc/nginx/templates | ||
|
||
# Copy template file based on SSL certificate acquisition | ||
COPY ./default.conf.template /etc/nginx/templates/default.conf.template | ||
COPY ./default.staging.conf.template /etc/nginx/templates/default.staging.conf.template | ||
|
||
# Copy template file based on SSL certificate acquisition | ||
RUN if [ "$IS_SSL_ACQUIRED" = "true" ]; then \ | ||
rm /etc/nginx/templates/default.staging.conf.template; \ | ||
else \ | ||
rm /etc/nginx/templates/default.conf.template; \ | ||
fi | ||
|
||
# COPY proxy params | ||
COPY ./proxy_params /etc/nginx/proxy_params |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.