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
This commit is contained in:
Andrej Spielmann
2026-03-26 15:53:25 +01:00
parent fb43a8ee9c
commit ee96df11bf
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -1 +1 @@
NEXT_PUBLIC_API_URL=http://192.168.101.111:8000/api/v1
NEXT_PUBLIC_API_URL=https://rce.playman.top/api/v1