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