Skip to content

Commit

Permalink
fix: fix a bug about the certificats
Browse files Browse the repository at this point in the history
Closes: #230
  • Loading branch information
ColinRgm committed Jan 21, 2025
1 parent e326e2c commit 2cc0744
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile/Nginx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ RUN sed -i '/location \/adminer\//,/}/d' /etc/nginx/conf.d/default.conf
COPY ../php/public /var/www/memoires-info/php/public

# copy the nginx certificats
COPY ../climateguardian_dev.com.pem /etc/nginx
COPY ../climateguardian_dev.com-key.pem /etc/nginx
COPY ../climateguardian_dev.com.pem /etc/nginx/climateguardian_dev.com.pem
COPY ../climateguardian_dev.com-key.pem /etc/nginx/climateguardian_dev.com-key.pem
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ services:
- "./nextjs-interface:/var/www/memoires-info/html/"

web:
build:
dockerfile: Dockerfile/Nginx.Dockerfile
image: nginx:1.26-alpine-otel
ports:
- "80:80"
Expand All @@ -86,8 +88,8 @@ services:
- "./nginx.conf:/etc/nginx/conf.d/default.conf"
- "./php:/var/www/memoires-info/php/"
# Nginx certificats
- "./climateguardian_dev.com.pem:/etc/nginx"
- "./climateguardian_dev.com-key.pem:/etc/nginx"
- "./climateguardian_dev.com.pem:/etc/nginx/climateguardian_dev.com.pem"
- "./climateguardian_dev.com-key.pem:/etc/nginx/climateguardian_dev.com-key.pem"
depends_on:
- php
- postg-rest
Expand Down

0 comments on commit 2cc0744

Please sign in to comment.