Skip to content

Commit

Permalink
fix: create certification
Browse files Browse the repository at this point in the history
Closes: #204
  • Loading branch information
ColinRgm committed Jan 20, 2025
1 parent 37b4b35 commit 66386f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Dockerfile/Nginx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ RUN sed -i '/location \/adminer\//,/}/d' /etc/nginx/conf.d/default.conf
# copy php files for ngnix to know they exist
COPY ../php/public /var/www/memoires-info/php/public

COPY ../climateguardian_dev.com-key.pem /etc/nginx/ssl
COPY ../climateguardian_dev.com.pem /etc/nginx/ssl

4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ services:
volumes:
- "./.env:/var/www/memoires-info/html/.env"
- "./nginx.conf:/etc/nginx/conf.d/default.conf"
- "./nginx/certs:/etc/nginx/ssl"
- "./climateguardian_dev.com.pem:/etc/nginx/ssl"
- "./climateguardian_dev.com-key.pem:/etc/nginx/ssl"
- "./php:/var/www/memoires-info/php/"
- ""
depends_on:
- php
- postg-rest
Expand Down
3 changes: 0 additions & 3 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ server {
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;

listen 80;
listen [::]:80;

server_name climateguardian_dev.com;

ssl_certificate climateguardian_dev.com.pem;
Expand Down

0 comments on commit 66386f7

Please sign in to comment.