-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
54 lines (43 loc) · 1.54 KB
/
config.example.toml
File metadata and controls
54 lines (43 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Rendez-Vous Exec Configuration Example
# Copy this to config.toml and adjust for your needs
[server]
listen_addr = "0.0.0.0:8080"
[security]
# Token files should have 0600 permissions (owner read/write only)
# Generate strong tokens with: openssl rand -base64 32
# Each file should contain one token per line
# Tokens must be at least 32 characters long
client_tokens_file = "tokens/client.tokens"
worker_tokens_file = "tokens/worker.tokens"
[limits]
pair_timeout_ms = 30000
[broker]
url = "ws://localhost:8080"
[client]
# Client token file (for client mode)
# File should have 0600 permissions and contain a token ≥32 characters
# token_file = "tokens/my-client.token"
[worker]
# Worker token file (for worker mode)
# File should have 0600 permissions and contain a token ≥32 characters
# token_file = "tokens/my-worker.token"
[job]
job_category = "compute"
[exec]
# Legacy: allowed commands (deprecated, use command_configs instead)
allowed_commands = ["cat", "sha256sum", "rev", "stockfish", "tty"]
# New: fine-grained command configuration
command_configs = [
# Example: allow 'echo' command with any arguments
# { command = "echo", allow_args = true },
# Example: allow 'ls' with specific arguments only
# { command = "ls", allow_args = true, allowed_args = ["-la", "-l", "-a"] },
# Example: limit number of arguments
# { command = "grep", allow_args = true, max_args = 5 }
]
# Security settings
allow_client_env = false
allow_client_cwd = false
[exec.env]
# Default environment variables for workers
# PATH = "/usr/bin:/bin"