Skip to content

Commit

Permalink
Hardcode let'sencrypt path to avoid problems with docker volumes and …
Browse files Browse the repository at this point in the history
…renewal
  • Loading branch information
ldeluigi committed Mar 2, 2023
1 parent f24c1a5 commit 28283f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ jobs:
SECRET_KEY: ${{ secrets.ENV_SECRET_KEY }}
DB_USER: ${{ secrets.ENV_DB_USER }}
DB_PASSWORD: ${{ secrets.ENV_DB_PASSWORD }}
SSL_CERTIFICATE_LOCATION: ${{ secrets.ENV_SSL_CERTIFICATE_LOCATION }}
AWS_S3_ACCESS_KEY_ID: ${{ secrets.ENV_AWS_S3_ACCESS_KEY_ID }}
AWS_S3_SECRET_ACCESS_KEY: ${{ secrets.ENV_AWS_S3_SECRET_ACCESS_KEY }}
AWS_S3_REGION: ${{ secrets.ENV_AWS_S3_REGION }}
Expand Down
2 changes: 1 addition & 1 deletion backend/docker-compose.ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ services:
target: ssl
image: spellbook-nginx-ssl
volumes:
- ${SSL_CERTIFICATE_LOCATION:?}:/etc/nginx/ssl/:ro
- /etc/letsencrypt/:/etc/letsencrypt/:ro
ports:
- 443:443
4 changes: 2 additions & 2 deletions backend/nginx/ssl.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name backend.commanderspellbook.com;
ssl_certificate /etc/nginx/ssl/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
ssl_certificate /etc/letsencrypt/live/backend.commanderspellbook.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/backend.commanderspellbook.com/privkey.pem;

if ($scheme = http) {
return 301 https://$server_name$request_uri;
Expand Down

0 comments on commit 28283f2

Please sign in to comment.