infra: change host port from 3000 to 3847
All checks were successful
Build & Push / build-and-push (push) Successful in 1m31s
All checks were successful
Build & Push / build-and-push (push) Successful in 1m31s
Port 3000 is already in use on the server. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ services:
|
||||
image: code.letsbe.solutions/letsbe/letsbebiz-site:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:3000:3000"
|
||||
- "127.0.0.1:3847:3000"
|
||||
environment:
|
||||
DATABASE_URI: postgresql://${POSTGRES_USER:-letsbe}:${POSTGRES_PASSWORD}@db:5432/letsbe
|
||||
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
||||
|
||||
@@ -6,7 +6,7 @@ server {
|
||||
# Certbot will add SSL config after: sudo certbot --nginx -d staging.letsbe.biz
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_pass http://127.0.0.1:3847;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
@@ -20,21 +20,21 @@ server {
|
||||
|
||||
# Static assets — long cache
|
||||
location /_next/static/ {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_pass http://127.0.0.1:3847;
|
||||
proxy_cache_valid 200 365d;
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
}
|
||||
|
||||
# Public assets
|
||||
location /images/ {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_pass http://127.0.0.1:3847;
|
||||
proxy_cache_valid 200 30d;
|
||||
add_header Cache-Control "public, max-age=2592000";
|
||||
}
|
||||
|
||||
# Payload media uploads
|
||||
location /media/ {
|
||||
proxy_pass http://127.0.0.1:3000;
|
||||
proxy_pass http://127.0.0.1:3847;
|
||||
proxy_cache_valid 200 30d;
|
||||
add_header Cache-Control "public, max-age=2592000";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user