Files
2026-09-21 19:12:31 +08:00

36 lines
1.4 KiB
Plaintext

server {
listen 80;
server_name localhost;
# Vue 闈欐€佹枃浠? root /usr/share/nginx/html;
index index.html;
# ========== 鍚庣 API 浠g悊 ==========
# 绮剧‘鍖归厤鎵€鏈夊悗绔?API 璺緞锛岃浆鍙戝埌 FastAPI
location ~ ^/(login|register|updatePassword|admin|student|major|clazz|course|grade|notice|studentCourse|files) {
proxy_pass http://backend:9090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# ========== SPA 鍓嶇璺敱 ==========
# 鍏堝尮閰嶉潤鎬佹枃浠讹紝鎵句笉鍒板垯鍥為€€鍒?index.html锛堜氦鐢?Vue Router 澶勭悊锛? location / {
try_files $uri $uri/ /index.html;
}
# 鏂囦欢涓婁紶澶у皬闄愬埗
client_max_body_size 50m;
}
docker : Error response from daemon: Container bcbfa3c10130cb8d7241e89f2d0b2f85
3c6f277fc39f845548bda96e66f5dda5 is restarting, wait until the container is run
ning
所在位置 行:445 字符: 148
+ ... x.tmp 2>&1; docker exec student-backend cat /app/settings.py >> D:\fa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Error response ...iner is running
:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError