Skip to content

Commit

Permalink
certbot domain added to .nginx file
Browse files Browse the repository at this point in the history
  • Loading branch information
budescode committed Feb 6, 2024
1 parent 47b2072 commit 9e773c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FROM nginx:latest

COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy the .env file into the container
COPY /code/.env /etc/nginx/conf.d/.env
# Set environment variables based on the values in the .env file
ENV SERVER_NAME=$(cat /etc/nginx/.env | grep CERTBOT_DOMAIN | cut -d '=' -f 2)

EXPOSE 80

Expand Down

0 comments on commit 9e773c2

Please sign in to comment.