chore: Adapt deployment for shared hosting (internal port 8080, remove docker certbot)

This commit is contained in:
Atharv1705
2026-09-05 21:56:02 +05:30
parent 08cd959746
commit e58dddafee
2 changed files with 2 additions and 26 deletions
+1 -11
View File
@@ -3,13 +3,10 @@ services:
nginx: nginx:
image: nginx:1.25-alpine image: nginx:1.25-alpine
ports: ports:
- "80:80" - "127.0.0.1:8080:80"
- "443:443"
volumes: volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./frontend/dist:/usr/share/nginx/html:ro - ./frontend/dist:/usr/share/nginx/html:ro
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
depends_on: depends_on:
- app - app
restart: unless-stopped restart: unless-stopped
@@ -42,13 +39,6 @@ services:
restart: unless-stopped restart: unless-stopped
certbot:
image: certbot/certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
db: db:
image: mysql:8.4 image: mysql:8.4
+1 -15
View File
@@ -2,10 +2,7 @@ server {
listen 80; listen 80;
server_name aiindiacpa.duckdns.org 147.93.168.145; server_name aiindiacpa.duckdns.org 147.93.168.145;
# ── Certbot ACME Challenge ───────────────────────────────────────────────
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
# Redirect all HTTP traffic to HTTPS (uncomment when SSL certs are generated) # Redirect all HTTP traffic to HTTPS (uncomment when SSL certs are generated)
# location / { # location / {
@@ -91,14 +88,3 @@ server {
} }
# ── HTTPS Server Block ───────────────────────────────────────────────────
# Uncomment this block after generating SSL certificates via Certbot
# server {
# listen 443 ssl;
# server_name aiindiacpa.duckdns.org 147.93.168.145;
#
# ssl_certificate /etc/letsencrypt/live/aiindiacpa.duckdns.org/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/aiindiacpa.duckdns.org/privkey.pem;
#
# # (Include the rest of the location blocks from port 80 here)
# }