feature-nxdev #68
@ -137,7 +137,7 @@ namespace IM_API
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
string uploadPath = Path.Combine(Directory.GetCurrentDirectory(), "Uploads","files");
|
||||
string uploadPath = Path.Combine(Directory.GetCurrentDirectory(), "uploads","files");
|
||||
|
||||
// 2. 如果文件夹不存在则创建,防止程序启动报错
|
||||
if (!Directory.Exists(uploadPath))
|
||||
|
||||
@ -1,4 +1,8 @@
|
||||
VITE_API_BASE_URL = http://localhost:5202/api
|
||||
VITE_SIGNALR_BASE_URL = http://localhost:5202/chat/
|
||||
#VITE_API_BASE_URL = https://im.test.nxsir.cn/api
|
||||
#VITE_SIGNALR_BASE_URL = https://im.test.nxsir.cn/chat/
|
||||
# VITE_API_BASE_URL = http://localhost:5202/api
|
||||
# VITE_SIGNALR_BASE_URL = http://localhost:5202/chat/
|
||||
# VITE_API_BASE_URL = https://im.test.nxsir.cn/api
|
||||
# VITE_SIGNALR_BASE_URL = https://im.test.nxsir.cn/chat/
|
||||
|
||||
|
||||
VITE_API_BASE_URL = http://192.168.5.116:7070/api
|
||||
VITE_SIGNALR_BASE_URL = http://192.168.5.116:7070/chat/
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
content="default-src 'self';
|
||||
script-src 'self' 'unsafe-inline';
|
||||
style-src 'self' 'unsafe-inline';
|
||||
connect-src 'self' http://localhost:5202 ws://localhost:5202;
|
||||
connect-src 'self' http://localhost:5202 ws://localhost:5202 http://192.168.5.116:7070 ws://192.168.5.116:7070;
|
||||
img-src 'self' data: blob: https: http:;
|
||||
font-src 'self' data:;
|
||||
media-src 'self' blob:;">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user