Skip to content

Commit

Permalink
map certificates and fix nginx template
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Dec 6, 2023
1 parent b12c290 commit efa898d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ services:
dockerfile: Dockerfile
context: .
ports:
- "80:${PORT}"
- 443:443
- 80:80
volumes:
- .certs:/etc/ssl/pkpdapp
- ${PWD}/.certs/pkpdapp.key:/etc/ssl/pkpdapp.key
- ${PWD}/.certs/pkpdapp.crt:/etc/ssl/pkpdapp.crt
restart: unless-stopped
env_file:
- ./.env.prod
Expand Down
6 changes: 3 additions & 3 deletions nginx.default.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ upstream app_server {
}

server {
listen $PORT ssl;
listen 443 ssl;
server_name pkpdapp.com;
ssl_certificate /etc/ssl/pkpdapp/pkpdapp.com.crt;
ssl_certificate_key /etc/ssl/pkpdapp/pkpdapp.com.key;
ssl_certificate /etc/ssl/pkpdapp.crt;
ssl_certificate_key /etc/ssl/pkpdapp.key;

# javascript frontend
location / {
Expand Down

0 comments on commit efa898d

Please sign in to comment.