Skip to content

Commit

Permalink
remove 443
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzaizai2k committed Nov 9, 2024
1 parent 57087d9 commit 80ee9a5
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions nginx/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -33,41 +33,4 @@ http {
}
}

# HTTPS server
server {
listen 443 ssl;
server_name ${DOMAIN_NAME};

# SSL configuration
ssl_certificate /etc/letsencrypt/live/${DOMAIN_NAME}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/${DOMAIN_NAME}/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/${DOMAIN_NAME}/chain.pem;

# Frontend
location / {
proxy_pass http://jwt-frontend:3000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

# Backend API
location /api/ {
proxy_pass http://fastapi-app:8149/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300s;
proxy_connect_timeout 75s;
}

# MongoDB
location /mongo/ {
proxy_pass http://mongodb:27017/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
}

0 comments on commit 80ee9a5

Please sign in to comment.