feat: add three options of judge server

This commit is contained in:
Mikucat 2024-04-05 15:49:54 +08:00
parent f110b52cf6
commit 9677929f54
No known key found for this signature in database
GPG Key ID: CE6B09A6F462E04D
2 changed files with 8 additions and 5 deletions

View File

@ -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 |

View File

@ -20,7 +20,7 @@
zstd -d "<backup file>" | docker compose exec postgres psql
```
## Test case
## Testcase
- backup