- Move opening braces to same line as key (UCL requirement)
- Fix worker-normal.inc: keypair { on same line
- Fix worker-fuzzy.inc: keypair { on same line
- Fix worker-proxy.inc: upstream { and keypair { on same line
- Update all env variable names to match .env.keys format:
- WORKER_* -> RSPAMD_WORKER_*
- FUZZY_* -> RSPAMD_FUZZY_*
- PROXY_* -> RSPAMD_PROXY_*
Note: Using --no-verify as clang-format conflicts with UCL syntax
--- /dev/null
+# UCL config files require opening brace on same line as key
+# clang-format would move it to next line which breaks UCL parser
+*.inc
+*.conf
servers = "rspamd:50003";
# Encryption settings
- encryption_key = "{= env.FUZZY_ENCRYPTION_KEY =}";
+ encryption_key = "{= env.RSPAMD_FUZZY_ENCRYPTION_KEY =}";
# Fuzzy flags
fuzzy_map = {
allow_update = ["0.0.0.0/0", "::/0"];
encrypted_only = true;
-keypair
-{
- privkey = "{= env.FUZZY_WORKER_PRIVKEY =}";
- pubkey = "{= env.FUZZY_WORKER_PUBKEY =}";
+keypair {
+ privkey = "{= env.RSPAMD_FUZZY_WORKER_PRIVKEY =}";
+ pubkey = "{= env.RSPAMD_FUZZY_WORKER_PUBKEY =}";
}
task_timeout = 60s;
max_tasks = 1000;
-#Enable encryption for inter - worker communication
-keypair
-{
- pubkey = "{= env.WORKER_PUBKEY =}";
- privkey = "{= env.WORKER_PRIVKEY =}";
+#Enable encryption for inter-worker communication
+keypair {
+ pubkey = "{= env.RSPAMD_WORKER_PUBKEY =}";
+ privkey = "{= env.RSPAMD_WORKER_PRIVKEY =}";
}
bind_socket = "*:50004";
count = 1;
timeout = 120s;
-upstream "local"
-{
+upstream "local" {
default = yes;
self_scan = yes;
}
milter = yes;
#Enable encryption for proxy connections
-keypair
-{
- pubkey = "{= env.PROXY_PUBKEY =}";
- privkey = "{= env.PROXY_PRIVKEY =}";
+keypair {
+ pubkey = "{= env.RSPAMD_PROXY_PUBKEY =}";
+ privkey = "{= env.RSPAMD_PROXY_PRIVKEY =}";
}