mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
36 lines
621 B
Plaintext
36 lines
621 B
Plaintext
location /public {
|
|
root /data;
|
|
}
|
|
|
|
location /api {
|
|
include api_proxy.conf;
|
|
}
|
|
|
|
location /data/ {
|
|
internal;
|
|
alias /data/; # note that trailing slash
|
|
}
|
|
|
|
location /admin {
|
|
root /app/dist/admin;
|
|
try_files $uri $uri/ /index.html =404;
|
|
}
|
|
|
|
location /.well-known {
|
|
alias /data/ssl/.well-known;
|
|
}
|
|
|
|
location /forum {
|
|
proxy_pass http://forum;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Host $http_host;
|
|
client_max_body_size 200M;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection '';
|
|
}
|
|
|
|
location / {
|
|
root /app/dist;
|
|
try_files $uri $uri/ /index.html =404;
|
|
}
|