Skip to content

Commit

Permalink
refactor: remove ssl certs and others from main nginx server
Browse files Browse the repository at this point in the history
  • Loading branch information
Armadillidiid committed Mar 16, 2024
1 parent 08f4fd9 commit 98746cc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
9 changes: 5 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ services:
volumes:
- static-data:/app/staticfiles
- media-data:/app/media
- ./nginx/proxy_params:/etc/nginx/proxy_params
- ./nginx/default.conf.template:/etc/nginx/templates/default.conf.template
- ./nginx/ssl-dhparams.pem:/etc/nginx/ssl-dhparams.pem
- ./nginx/options-ssl-nginx.conf:/etc/nginx/options-ssl-nginx.conf
- certs:/etc/nginx/certs
# - ./nginx/proxy_params:/etc/nginx/proxy_params
# - ./nginx/default.conf.template:/etc/nginx/templates/default.conf.template
# - ./nginx/options-ssl-nginx.conf:/etc/nginx/options-ssl-nginx.conf
depends_on:
- app
- nginx-proxy
Expand Down Expand Up @@ -120,3 +120,4 @@ volumes:
html:
certs:
acme:
docker exec -it nginx-proxy /bin/bash
11 changes: 8 additions & 3 deletions nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ server {
}

server {
listen 443 ssl http2;
listen 443 ssl;
http2 on;
listen [::]:443 ssl http2;
server_name ${SERVER_NAME};

include /etc/nginx/options-ssl-nginx.conf;
ssl_dhparam /etc/nginx/ssl-dhparams.pem;
# ssl_certificate /etc/nginx/certs/default.crt;
# ssl_certificate_key /etc/nginx/certs/default.pem;

# include /etc/nginx/options-ssl-nginx.conf;
# ssl_dhparam /etc/nginx/certs/dhparam.pem;


location /static {
alias /app/staticfiles/;
Expand Down
8 changes: 0 additions & 8 deletions nginx/ssl-dhparams.pem

This file was deleted.

0 comments on commit 98746cc

Please sign in to comment.