47
etc/files_dev.yaml
Normal file
47
etc/files_dev.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
Service: files
|
||||
Port: 12452
|
||||
SecretKey: ops-files
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=8.137.107.29 user=postgres password=Weidong2023~! dbname=ops_dev port=19432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
Cache: redis://null:Weidong2023~!@8.137.107.29:19379/
|
||||
|
||||
MicroService:
|
||||
Enable: false
|
||||
Anonymous:
|
||||
- files.ping.hello
|
||||
|
||||
ServiceClients:
|
||||
assets: ops-assets
|
||||
dc-control: ops-dc-control
|
||||
visual: ops-visual
|
||||
|
||||
ObjectStorage:
|
||||
Provider: aliyun
|
||||
Endpoint: https://oss-cn-beijing.aliyuncs.com
|
||||
Region: cn-beijing
|
||||
Bucket: ops-app
|
||||
PublicBaseURL: https://ops-app.oss-cn-beijing.aliyuncs.com
|
||||
AccessKeyID: ${FILES_OSS_ACCESS_KEY_ID}
|
||||
AccessKeySecret: ${FILES_OSS_ACCESS_KEY_SECRET}
|
||||
PresignTTLSeconds: 600
|
||||
|
||||
Namespaces:
|
||||
reports:
|
||||
Prefix: reports
|
||||
MaxSizeMB: 512
|
||||
AllowedExtensions: [.csv, .xlsx, .json, .pdf, .zip]
|
||||
assets:
|
||||
Prefix: assets
|
||||
MaxSizeMB: 50
|
||||
AllowedExtensions: [.png, .jpg, .jpeg, .webp, .gif, .svg, .pdf, .doc, .docx, .xls, .xlsx]
|
||||
visual:
|
||||
Prefix: visual
|
||||
MaxSizeMB: 100
|
||||
AllowedExtensions: [.png, .jpg, .jpeg, .webp, .gif, .svg, .json, .zip, .glb, .gltf]
|
||||
|
||||
Cleanup:
|
||||
IntervalSeconds: 600
|
||||
47
etc/files_prod.yaml
Normal file
47
etc/files_prod.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
Service: files
|
||||
Port: 12452
|
||||
SecretKey: ops-files
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=8.137.107.29 user=postgres password=Weidong2023~! dbname=ops_dev port=19432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
Cache: redis://null:Weidong2023~!@8.137.107.29:19379/
|
||||
|
||||
MicroService:
|
||||
Enable: false
|
||||
Anonymous:
|
||||
- files.ping.hello
|
||||
|
||||
ServiceClients:
|
||||
assets: ops-assets
|
||||
dc-control: ops-dc-control
|
||||
visual: ops-visual
|
||||
|
||||
ObjectStorage:
|
||||
Provider: aliyun
|
||||
Endpoint: https://oss-cn-beijing.aliyuncs.com
|
||||
Region: cn-beijing
|
||||
Bucket: ops-app
|
||||
PublicBaseURL: https://ops-app.oss-cn-beijing.aliyuncs.com
|
||||
AccessKeyID: ${FILES_OSS_ACCESS_KEY_ID}
|
||||
AccessKeySecret: ${FILES_OSS_ACCESS_KEY_SECRET}
|
||||
PresignTTLSeconds: 600
|
||||
|
||||
Namespaces:
|
||||
reports:
|
||||
Prefix: reports
|
||||
MaxSizeMB: 512
|
||||
AllowedExtensions: [.csv, .xlsx, .json, .pdf, .zip]
|
||||
assets:
|
||||
Prefix: assets
|
||||
MaxSizeMB: 50
|
||||
AllowedExtensions: [.png, .jpg, .jpeg, .webp, .gif, .svg, .pdf, .doc, .docx, .xls, .xlsx]
|
||||
visual:
|
||||
Prefix: visual
|
||||
MaxSizeMB: 100
|
||||
AllowedExtensions: [.png, .jpg, .jpeg, .webp, .gif, .svg, .json, .zip, .glb, .gltf]
|
||||
|
||||
Cleanup:
|
||||
IntervalSeconds: 600
|
||||
47
etc/files_test.yaml
Normal file
47
etc/files_test.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
Service: files
|
||||
Port: 12452
|
||||
SecretKey: ops-files
|
||||
|
||||
Databases:
|
||||
Driver: postgres
|
||||
Source:
|
||||
- host=8.137.107.29 user=postgres password=Weidong2023~! dbname=ops_dev port=19432 sslmode=disable TimeZone=Asia/Shanghai
|
||||
|
||||
Cache: redis://null:Weidong2023~!@8.137.107.29:19379/
|
||||
|
||||
MicroService:
|
||||
Enable: false
|
||||
Anonymous:
|
||||
- files.ping.hello
|
||||
|
||||
ServiceClients:
|
||||
assets: ops-assets
|
||||
dc-control: ops-dc-control
|
||||
visual: ops-visual
|
||||
|
||||
ObjectStorage:
|
||||
Provider: aliyun
|
||||
Endpoint: https://oss-cn-beijing.aliyuncs.com
|
||||
Region: cn-beijing
|
||||
Bucket: ops-app
|
||||
PublicBaseURL: https://ops-app.oss-cn-beijing.aliyuncs.com
|
||||
AccessKeyID: ${FILES_OSS_ACCESS_KEY_ID}
|
||||
AccessKeySecret: ${FILES_OSS_ACCESS_KEY_SECRET}
|
||||
PresignTTLSeconds: 600
|
||||
|
||||
Namespaces:
|
||||
reports:
|
||||
Prefix: reports
|
||||
MaxSizeMB: 512
|
||||
AllowedExtensions: [.csv, .xlsx, .json, .pdf, .zip]
|
||||
assets:
|
||||
Prefix: assets
|
||||
MaxSizeMB: 50
|
||||
AllowedExtensions: [.png, .jpg, .jpeg, .webp, .gif, .svg, .pdf, .doc, .docx, .xls, .xlsx]
|
||||
visual:
|
||||
Prefix: visual
|
||||
MaxSizeMB: 100
|
||||
AllowedExtensions: [.png, .jpg, .jpeg, .webp, .gif, .svg, .json, .zip, .glb, .gltf]
|
||||
|
||||
Cleanup:
|
||||
IntervalSeconds: 600
|
||||
14
etc/ops-files.service
Normal file
14
etc/ops-files.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Files Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ops
|
||||
WorkingDirectory=/opt/ops/files
|
||||
ExecStart=/opt/ops/files/ops-files
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
8
etc/supervisor.ops-files.conf
Normal file
8
etc/supervisor.ops-files.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
[program:ops-files]
|
||||
command=/data/app/ops-files
|
||||
directory=/data/app
|
||||
autostart=true
|
||||
autorestart=true
|
||||
user=root
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/data/app/logs/ops-files.log
|
||||
Reference in New Issue
Block a user