From 9677929f5455f51a634aaaa37efa715675d1717c Mon Sep 17 00:00:00 2001 From: Mikucat Date: Fri, 5 Apr 2024 15:49:54 +0800 Subject: [PATCH] feat: add three options of judge server --- en/guide/configuration.md | 11 +++++++---- en/management/backup_and_restore.md | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/en/guide/configuration.md b/en/guide/configuration.md index 9cc12b7..15f545c 100644 --- a/en/guide/configuration.md +++ b/en/guide/configuration.md @@ -5,7 +5,7 @@ ### Web Backend | Name | Default Value | Description | -| ---- | ----- | ----------- | +| ---- | ------------- | ----------- | | POSTGRES_HOST | `postgres` | Postgres connection host | | POSTGRES_PORT | `5432` | Postgres connection port | | POSTGRES_DB | `onlinejudge` | Postgres database name | @@ -13,10 +13,13 @@ | POSTGRES_PASSWORD | `onlinejudge` | Postgres user password | | REDIS_HOST | `redis` | Redis connection host | | REDIS_PORT | `6379` | Redis connection port | -| JUDGE_SERVER_TOKEN | (empty) | password used in judge server authentication | +| JUDGE_SERVER_TOKEN | (empty) | Password used in judge server authentication | ### Judge Server | Name | Default Value | Description | -| ---- | ----- | ----------- | -| JUDGE_SERVER_TOKEN | (empty) | password used in judge server authentication | +| ---- | ------------- | ----------- | +| JUDGE_SERVER_TOKEN | (empty) | Password used in judge server authentication | +| BACKEND_URL | (empty) | Judge server will send heartbeats to this URL (API server) every five seconds | +| SERVICE_URL | (empty) | API server will send tasks to this URL (judge server) | +| judger_debug | (empty) | If value is 1, enable debug logging, judge cases will not be deleted | diff --git a/en/management/backup_and_restore.md b/en/management/backup_and_restore.md index beeeece..256026d 100644 --- a/en/management/backup_and_restore.md +++ b/en/management/backup_and_restore.md @@ -20,7 +20,7 @@ zstd -d "" | docker compose exec postgres psql ``` -## Test case +## Testcase - backup