From ee96df11bf9eb0eeb1cfcc38d87c057f7487ccdd Mon Sep 17 00:00:00 2001 From: Andrej Spielmann Date: Thu, 26 Mar 2026 15:53:25 +0100 Subject: [PATCH] fix: update CORS and API URL for production deployment - Change API URL from local IP to https://rce.playman.top - Add Unraid IP to ALLOWED_HOSTS and CORS_ALLOWED_ORIGINS - Fix CORS policy for direct IP access --- docker-compose.yml | 4 ++-- frontend/.env.local | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 06a7168..4d695b6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,8 +13,8 @@ services: environment: - SECRET_KEY=${SECRET_KEY} - DEBUG=False - - ALLOWED_HOSTS=localhost,127.0.0.1,rce.playman.top,nginx-proxy-manager - - CORS_ALLOWED_ORIGINS=https://rce.playman.top + - ALLOWED_HOSTS=localhost,127.0.0.1,rce.playman.top,192.168.101.42,nginx-proxy-manager + - CORS_ALLOWED_ORIGINS=https://rce.playman.top,http://192.168.101.42:10001,http://192.168.101.42:10002 - DATABASE_URL=${DATABASE_URL} networks: - wrestledesk-network diff --git a/frontend/.env.local b/frontend/.env.local index e2692f1..9ccfe6e 100644 --- a/frontend/.env.local +++ b/frontend/.env.local @@ -1 +1 @@ -NEXT_PUBLIC_API_URL=http://192.168.101.111:8000/api/v1 +NEXT_PUBLIC_API_URL=https://rce.playman.top/api/v1