mirror of
https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git
synced 2024-11-09 16:18:49 +00:00
17 lines
340 B
JavaScript
17 lines
340 B
JavaScript
import daemon from './daemon.js';
|
|
|
|
const {
|
|
UOJ_PROTOCOL = 'http',
|
|
UOJ_HOST = 'uoj-web',
|
|
UOJ_JUDGER_NAME = 'luogu_remote_judger',
|
|
UOJ_JUDGER_PASSWORD = '',
|
|
} = process.env;
|
|
|
|
const UOJ_BASEURL = `${UOJ_PROTOCOL}://${UOJ_HOST}`;
|
|
|
|
daemon({
|
|
server_url: UOJ_BASEURL,
|
|
judger_name: UOJ_JUDGER_NAME,
|
|
password: UOJ_JUDGER_PASSWORD,
|
|
});
|