OnlineJudge/deploy/nginx/locations.conf
virusdefender 568a735eec add forum
2018-05-08 07:35:07 +08:00

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;
}