设计
This commit is contained in:
5
server/etc/sample.env
Normal file
5
server/etc/sample.env
Normal file
@@ -0,0 +1,5 @@
|
||||
# systemd EnvironmentFile 示例,复制为 /data/app/etc/sample.env 后按需修改
|
||||
BSM_Workspace=default
|
||||
BSM_RuntimeMode=prod
|
||||
BSM_Prefix=/data/app
|
||||
BSM_JwtSecretKey=change-me-to-a-random-string
|
||||
16
server/etc/sample.service
Normal file
16
server/etc/sample.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Sample Service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
EnvironmentFile=/data/app/etc/sample.env
|
||||
ExecStart=/data/app/sample
|
||||
WorkingDirectory=/data/app/
|
||||
StandardOutput=file:/data/app/logs/sample.log
|
||||
StandardError=file:/data/app/logs/sample.error.log
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
27
server/etc/sample_dev.yaml
Normal file
27
server/etc/sample_dev.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
Service: sample
|
||||
Port: 12426
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=8.137.107.29 user=postgres password=Weidong2023~! dbname=sample_dev port=19432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
Cache: redis://null:Weidong2023~!@8.137.107.29:19379/0
|
||||
|
||||
# 是否启用微服务模式
|
||||
OnMicroService: false
|
||||
|
||||
# 微服务调用密钥
|
||||
SecretKey: 6ad9529688041483f458f8de11ed16ff
|
||||
|
||||
# Rpc:
|
||||
# fts:
|
||||
# Endpoint: https://api-v2.traingo.cn/fts/v2
|
||||
# SecretKey: 4ef05311358cd1c8f787281f08b38b1c
|
||||
|
||||
|
||||
# 链路追踪,性能监控,日志收集
|
||||
# APM:
|
||||
# Platform: elasticAPM
|
||||
# Endpoint: http://127.0.0.1:14268/api/traces
|
||||
27
server/etc/sample_prod.yaml
Normal file
27
server/etc/sample_prod.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
Service: sample
|
||||
Port: 12426
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=8.137.107.29 user=postgres password=Weidong2023~! dbname=sample_prod port=19432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
Cache: redis://null:Weidong2023~!@8.137.107.29:19379/0
|
||||
|
||||
# 是否启用微服务模式
|
||||
OnMicroService: false
|
||||
|
||||
# 微服务调用密钥
|
||||
SecretKey: 6ad9529688041483f458f8de11ed16ff
|
||||
|
||||
# Rpc:
|
||||
# fts:
|
||||
# Endpoint: https://api-v2.traingo.cn/fts/v2
|
||||
# SecretKey: 4ef05311358cd1c8f787281f08b38b1c
|
||||
|
||||
|
||||
# 链路追踪,性能监控,日志收集
|
||||
# APM:
|
||||
# Platform: elasticAPM
|
||||
# Endpoint: http://127.0.0.1:14268/api/traces
|
||||
27
server/etc/sample_test.yaml
Normal file
27
server/etc/sample_test.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
Service: sample
|
||||
Port: 12426
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=8.137.107.29 user=postgres password=Weidong2023~! dbname=sample_test port=19432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
# cache DB的选择请在后面直接带参数,不带会自动HASH计算选择DB库。
|
||||
Cache: redis://null:Weidong2023~!@8.137.107.29:19379/0
|
||||
|
||||
# 是否启用微服务模式
|
||||
OnMicroService: false
|
||||
|
||||
# 微服务调用密钥
|
||||
SecretKey: 6ad9529688041483f458f8de11ed16ff
|
||||
|
||||
# Rpc:
|
||||
# fts:
|
||||
# Endpoint: https://api-v2.traingo.cn/fts/v2
|
||||
# SecretKey: 4ef05311358cd1c8f787281f08b38b1c
|
||||
|
||||
|
||||
# 链路追踪,性能监控,日志收集
|
||||
# APM:
|
||||
# Platform: elasticAPM
|
||||
# Endpoint: http://127.0.0.1:14268/api/traces
|
||||
Reference in New Issue
Block a user