fix: 初验针对修改
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
Service: logs
|
||||
Port: 12440
|
||||
Port: 12440
|
||||
BindIP: 0.0.0.0
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=8.137.107.29 user=postgres password=Weidong2023~! dbname=ops_dev port=19432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
- "${OPS_LOGS_DB_DSN}"
|
||||
# - host=8.137.107.29 user=system password=12345678 dbname=ops port=54321 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
@@ -29,3 +30,11 @@ AlertForward:
|
||||
ResourceEvent:
|
||||
hmac_secret: ${DC_CONTROL_LOGS_EVENT_SECRET}
|
||||
max_skew_secs: 300
|
||||
|
||||
OTLP:
|
||||
internal_key: ${LOGS_OTLP_INTERNAL_KEY}
|
||||
|
||||
SystemSettings:
|
||||
base_url: http://localhost:12436
|
||||
refresh_seconds: 30
|
||||
timeout_seconds: 5
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
Service: logs
|
||||
Port: 12440
|
||||
Port: 12440
|
||||
BindIP: 127.0.0.1
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=8.137.107.29 user=postgres password=Weidong2023~! dbname=ops_dev port=19432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
# - host=8.137.107.29 user=system password=12345678 dbname=ops port=54321 sslmode=disable TimeZone=Asia/Shanghai
|
||||
Driver: postgres
|
||||
Source:
|
||||
- "${OPS_LOGS_DB_DSN}"
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
Cache: redis://null:Weidong2023~!@8.137.107.29:19379/
|
||||
Cache: ${OPS_CACHE_DSN}
|
||||
|
||||
MicroService:
|
||||
Enable: false
|
||||
@@ -22,10 +22,18 @@ Ingest:
|
||||
|
||||
AlertForward:
|
||||
enabled: true
|
||||
base_url: https://ops-api.apinb.com
|
||||
base_url: ${ALERT_BASE_URL}
|
||||
internal_key: ${LOGS_ALERT_SECRET}
|
||||
default_policy_id: 0
|
||||
|
||||
ResourceEvent:
|
||||
hmac_secret: ${DC_CONTROL_LOGS_EVENT_SECRET}
|
||||
max_skew_secs: 300
|
||||
|
||||
OTLP:
|
||||
internal_key: ${LOGS_OTLP_INTERNAL_KEY}
|
||||
|
||||
SystemSettings:
|
||||
base_url: ${MGT_BASE_URL}
|
||||
refresh_seconds: 30
|
||||
timeout_seconds: 5
|
||||
|
||||
@@ -13,11 +13,11 @@ Environment=BSM_RuntimeMode=prod
|
||||
Environment=RUN_MODE=prod
|
||||
Environment=BSM_Prefix=/data/app
|
||||
ExecStart=/data/app/ops-logs
|
||||
ExecStartPost=/data/app/systemd/wait-http.sh ops-logs http://127.0.0.1:12440/Logs/v1/ping/hello 60
|
||||
ExecStartPost=/data/app/systemd/wait-http.sh ops-logs http://127.0.0.1:12440/ready 60
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
TimeoutStartSec=75s
|
||||
TimeoutStopSec=30s
|
||||
TimeoutStopSec=75s
|
||||
KillSignal=SIGTERM
|
||||
StandardOutput=append:/data/app/logs/logs.log
|
||||
StandardError=inherit
|
||||
|
||||
Reference in New Issue
Block a user