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
|
image: code.letsbe.solutions/letsbe/letsbebiz-site:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:3000:3000"
|
- "127.0.0.1:3847:3000"
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URI: postgresql://${POSTGRES_USER:-letsbe}:${POSTGRES_PASSWORD}@db:5432/letsbe
|
DATABASE_URI: postgresql://${POSTGRES_USER:-letsbe}:${POSTGRES_PASSWORD}@db:5432/letsbe
|
||||||
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ server {
|
|||||||
# Certbot will add SSL config after: sudo certbot --nginx -d staging.letsbe.biz
|
# Certbot will add SSL config after: sudo certbot --nginx -d staging.letsbe.biz
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:3000;
|
proxy_pass http://127.0.0.1:3847;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection 'upgrade';
|
proxy_set_header Connection 'upgrade';
|
||||||
@@ -20,21 +20,21 @@ server {
|
|||||||
|
|
||||||
# Static assets — long cache
|
# Static assets — long cache
|
||||||
location /_next/static/ {
|
location /_next/static/ {
|
||||||
proxy_pass http://127.0.0.1:3000;
|
proxy_pass http://127.0.0.1:3847;
|
||||||
proxy_cache_valid 200 365d;
|
proxy_cache_valid 200 365d;
|
||||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Public assets
|
# Public assets
|
||||||
location /images/ {
|
location /images/ {
|
||||||
proxy_pass http://127.0.0.1:3000;
|
proxy_pass http://127.0.0.1:3847;
|
||||||
proxy_cache_valid 200 30d;
|
proxy_cache_valid 200 30d;
|
||||||
add_header Cache-Control "public, max-age=2592000";
|
add_header Cache-Control "public, max-age=2592000";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Payload media uploads
|
# Payload media uploads
|
||||||
location /media/ {
|
location /media/ {
|
||||||
proxy_pass http://127.0.0.1:3000;
|
proxy_pass http://127.0.0.1:3847;
|
||||||
proxy_cache_valid 200 30d;
|
proxy_cache_valid 200 30d;
|
||||||
add_header Cache-Control "public, max-age=2592000";
|
add_header Cache-Control "public, max-age=2592000";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user