chore: Update configs for new Contabo VPS (aicpa.duckdns.org / 13.140.170.213)
This commit is contained in:
+11
-1
@@ -3,10 +3,13 @@ services:
|
|||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.25-alpine
|
image: nginx:1.25-alpine
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8081:80"
|
- "80: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
|
||||||
@@ -39,6 +42,13 @@ 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
|
||||||
|
|
||||||
|
|||||||
+6
-1
@@ -1,6 +1,6 @@
|
|||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name aiindiacpa.duckdns.org 147.93.168.145;
|
server_name aicpa.duckdns.org 13.140.170.213;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -12,6 +12,11 @@ server {
|
|||||||
# Max upload size — matches backend 10MB limit with buffer
|
# Max upload size — matches backend 10MB limit with buffer
|
||||||
client_max_body_size 15m;
|
client_max_body_size 15m;
|
||||||
|
|
||||||
|
# ── Certbot ACME Challenge ───────────────────────────────────────────────
|
||||||
|
location /.well-known/acme-challenge/ {
|
||||||
|
root /var/www/certbot;
|
||||||
|
}
|
||||||
|
|
||||||
# ── Static CSS (served directly from dist, no FastAPI hop) ───────────────
|
# ── Static CSS (served directly from dist, no FastAPI hop) ───────────────
|
||||||
location /css/ {
|
location /css/ {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ _ALLOWED_ORIGINS = [
|
|||||||
o.strip()
|
o.strip()
|
||||||
for o in os.getenv(
|
for o in os.getenv(
|
||||||
"ALLOWED_ORIGINS",
|
"ALLOWED_ORIGINS",
|
||||||
"https://aiindiacpa.duckdns.org",
|
"https://aicpa.duckdns.org",
|
||||||
).split(",")
|
).split(",")
|
||||||
if o.strip()
|
if o.strip()
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user