Migrated from the rl-toolkit snapshot deployed for the 2026-09-15 production run (toolkit e191cf1 plus uncommitted changes). PRIME-RL is now a submodule on dphn/prime-rl@trinity; the v0 envs, parity tests, OPD experiment, and old configs are not carried over.
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
worker_processes auto;
|
|
worker_rlimit_nofile 65535;
|
|
pid ${JUDGE_STATE_DIR}/nginx.pid;
|
|
error_log ${JUDGE_STATE_DIR}/nginx-error.log warn;
|
|
events { worker_connections 8192; }
|
|
http {
|
|
log_format judge '$time_iso8601 $remote_addr $status $request_time $upstream_addr $upstream_response_time';
|
|
access_log ${JUDGE_STATE_DIR}/nginx-access.log judge;
|
|
upstream judges {
|
|
least_conn;
|
|
${JUDGE_UPSTREAMS}
|
|
keepalive 256;
|
|
}
|
|
server {
|
|
listen ${JUDGE_PUBLIC_PORT};
|
|
allow 127.0.0.1;
|
|
${JUDGE_ALLOW_RULES}
|
|
deny all;
|
|
client_max_body_size 16m;
|
|
location /v1/ {
|
|
proxy_pass http://judges;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Connection "";
|
|
proxy_connect_timeout 5s;
|
|
proxy_read_timeout 600s;
|
|
proxy_send_timeout 600s;
|
|
proxy_buffering off;
|
|
proxy_next_upstream error timeout http_502 http_503 http_504;
|
|
proxy_next_upstream_tries 4;
|
|
}
|
|
location / { return 404; }
|
|
}
|
|
}
|