mirror of
https://github.com/singchia/frontier.git
synced 2026-04-23 00:17:06 +08:00
6576b531a2
* feat: unify logging config for frontier and frontlas Add a shared Log config struct in pkg/config/log.go that drives both klog and armorigo through a single configuration layer. This fixes the asymmetry where frontier had --loglevel but frontlas did not, and enables file-based logging with rotation for non-container deployments. - New pkg/config/log.go: Log/LogFile structs, SetupLogging(), env overrides - Support four output modes: stdout, stderr, file, both (stdout+file) - Support env var overrides: LOG_LEVEL, LOG_OUTPUT, LOG_FORMAT, LOG_FILE - Add lumberjack dependency for file log rotation - Both binaries now accept: --loglevel, --log-output, --log-format, --log-file - Add log section to frontier_all.yaml and frontlas_all.yaml - Backward compatible: default behavior unchanged (stdout + info + text) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add README translations for ja, ko, es, fr, de Extend the README language switcher from English/简体中文 to seven languages and add full translations of the English README for Japanese, Korean, Spanish, French, and German. Code blocks, commands, configs, and URLs are preserved verbatim; only prose, headings, table cells, and captions are translated. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
168 lines
2.9 KiB
YAML
168 lines
2.9 KiB
YAML
controlplane:
|
|
enable: false
|
|
listen:
|
|
addr: 0.0.0.0:30010
|
|
advertised_addr: ""
|
|
network: tcp
|
|
tls:
|
|
ca_certs: null
|
|
certs: null
|
|
enable: false
|
|
insecure_skip_verify: false
|
|
mtls: false
|
|
daemon:
|
|
frontier_id: ""
|
|
pprof:
|
|
addr: 0.0.0.0:6060
|
|
cpu_profile_rate: 0
|
|
enable: true
|
|
rlimit:
|
|
enable: true
|
|
nofile: 102400
|
|
dao:
|
|
backend: buntdb
|
|
debug: false
|
|
edgebound:
|
|
bypass:
|
|
addrs:
|
|
- 192.168.1.10:8443
|
|
advertised_addr: ""
|
|
network: tcp
|
|
tls:
|
|
ca_certs:
|
|
- ca1.cert
|
|
certs:
|
|
- cert: frontier.cert
|
|
key: frontier.key
|
|
enable: true
|
|
insecure_skip_verify: false
|
|
mtls: true
|
|
bypass_enable: false
|
|
edgeid_alloc_when_no_idservice_on: true
|
|
listen:
|
|
addr: 0.0.0.0:30012
|
|
advertised_addr: ""
|
|
network: tcp
|
|
tls:
|
|
ca_certs:
|
|
- ca1.cert
|
|
- ca2.cert
|
|
certs:
|
|
- cert: edgebound.cert
|
|
key: edgebound.key
|
|
enable: false
|
|
insecure_skip_verify: false
|
|
mtls: false
|
|
exchange:
|
|
hashby: ""
|
|
frontlas:
|
|
dial:
|
|
addrs:
|
|
- 127.0.0.1:40012
|
|
advertised_addr: ""
|
|
network: tcp
|
|
tls:
|
|
ca_certs: null
|
|
certs: null
|
|
enable: false
|
|
insecure_skip_verify: false
|
|
mtls: false
|
|
enable: false
|
|
metrics:
|
|
enable: false
|
|
interval: 0
|
|
log:
|
|
file:
|
|
compress: false
|
|
max_age: 30
|
|
max_backups: 5
|
|
max_size: 100
|
|
path: /var/log/frontier/frontier.log
|
|
format: text
|
|
level: info
|
|
output: stdout
|
|
mqm:
|
|
amqp:
|
|
addrs: null
|
|
channel_max: 0
|
|
enable: false
|
|
exchanges: null
|
|
frame_size: 0
|
|
heartbeat: 0
|
|
locale: ""
|
|
producer:
|
|
app_id: ""
|
|
content_encoding: ""
|
|
content_type: ""
|
|
delivery_mode: 0
|
|
exchange: ""
|
|
expiration: ""
|
|
headers: null
|
|
immediate: false
|
|
mandatory: false
|
|
priority: 0
|
|
reply_to: ""
|
|
routing_keys: null
|
|
type: ""
|
|
user_id: ""
|
|
queueBindings: null
|
|
queues: null
|
|
vhost: ""
|
|
kafka:
|
|
addrs: null
|
|
enable: false
|
|
producer:
|
|
async: false
|
|
compression: none
|
|
compression_level: 0
|
|
flush:
|
|
bytes: 0
|
|
frequency: 0
|
|
max_messages: 0
|
|
messages: 0
|
|
idempotent: false
|
|
max_message_bytes: 0
|
|
required_acks: 0
|
|
retry:
|
|
backoff: 0
|
|
max: 0
|
|
timeout: 0
|
|
topics: null
|
|
nats:
|
|
addrs: null
|
|
enable: false
|
|
jetstream:
|
|
enable: false
|
|
name: ""
|
|
producer:
|
|
subjects: null
|
|
producer:
|
|
subjects: null
|
|
nsq:
|
|
addrs: null
|
|
enable: false
|
|
producer:
|
|
topics: null
|
|
redis:
|
|
addrs: null
|
|
db: 0
|
|
enable: false
|
|
password: ""
|
|
producer:
|
|
channels: null
|
|
servicebound:
|
|
listen:
|
|
addr: 0.0.0.0:30011
|
|
advertised_addr: ""
|
|
network: tcp
|
|
tls:
|
|
ca_certs:
|
|
- ca1.cert
|
|
- ca2.cert
|
|
certs:
|
|
- cert: servicebound.cert
|
|
key: servicebound.key
|
|
enable: false
|
|
insecure_skip_verify: false
|
|
mtls: false
|