Skip to content

Commit

Permalink
No https for pre-prod
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalaldo committed Dec 11, 2024
1 parent b8ddd6c commit 7aa65c2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
10 changes: 0 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,7 @@ services:
restart: always # for the container to be up and running again even after the VM is brought down
volumes:
- ./static:/static # a folder, where the static content will be served from
- ./certbot/www/:/var/www/certbot/:ro # a mounted folder that links nginx with certbot
- ./certbot/conf/live/pankb.org/fullchain.pem:/etc/nginx/ssl/live/pankb.org/fullchain.pem # the SSL certificate
- ./certbot/conf/live/pankb.org/privkey.pem:/etc/nginx/ssl/live/pankb.org/privkey.pem # the SSL private key
ports:
- 80:80
- 443:443
networks:
- pankb-net

certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
3 changes: 0 additions & 3 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
FROM nginx:1.19.0-alpine

COPY ./default.conf /etc/nginx/conf.d/default.conf

# Create a folder for SSL certificates
RUN mkdir -p /etc/nginx/ssl/live/pankb.org
19 changes: 0 additions & 19 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,3 @@ server {
return 301 https://$server_name$request_uri;
}
}


server {
listen 443 default_server ssl http2;
listen [::]:443 ssl http2;

server_name pankb.org www.pankb.org;

ssl_certificate /etc/nginx/ssl/live/pankb.org/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/pankb.org/privkey.pem;

location /static/ {
alias /static/;
}

location / {
proxy_pass http://django;
}
}

0 comments on commit 7aa65c2

Please sign in to comment.