Skip to content

Commit

Permalink
build: docker-compose, nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfromyeg committed Dec 31, 2023
1 parent 4a13983 commit 4bfd99e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ services:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- /path/to/ssl/certs:/etc/ssl/certs:ro # Mount SSL certificate and key
- ./nginx:/etc/nginx/conf.d
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- web
5 changes: 2 additions & 3 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ server {
listen 443 ssl;
server_name api.bereal.michaeldemar.co;

# SSL configuration
ssl_certificate /fullchain.pem;
ssl_certificate_key /privkey.pem;
ssl_certificate /etc/letsencrypt/live/api.bereal.michaeldemar.co/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/api.bereal.michaeldemar.co/privkey.pem;

# web and port are from the service's definition in docker-compose
location / {
Expand Down

0 comments on commit 4bfd99e

Please sign in to comment.