mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
improve readme.md
This commit is contained in:
+13
-5
@@ -23,13 +23,21 @@ managing and monitoring the system.
|
||||
| |--rustfs.service // systemd service file
|
||||
| |--rustfs-zh.service.md // systemd service file in Chinese
|
||||
|--certs
|
||||
| |--README.md // certs readme
|
||||
| |--rustfs_tls_cert.pem // API cert.pem
|
||||
| |--rustfs_tls_key.pem // API key.pem
|
||||
| |--rustfs_console_tls_cert.pem // console cert.pem
|
||||
| |--rustfs_console_tls_key.pem // console key.pem
|
||||
| ├── rustfs_cert.pem // Default|fallback certificate
|
||||
| ├── rustfs_key.pem // Default|fallback private key
|
||||
| ├── example.com/ // certificate directory of specific domain names
|
||||
| │ ├── rustfs_cert.pem
|
||||
| │ └── rustfs_key.pem
|
||||
| ├── api.example.com/
|
||||
| │ ├── rustfs_cert.pem
|
||||
| │ └── rustfs_key.pem
|
||||
| └── cdn.example.com/
|
||||
| ├── rustfs_cert.pem
|
||||
| └── rustfs_key.pem
|
||||
|--config
|
||||
| |--obs.example.yaml // example config
|
||||
| |--rustfs.env // env config
|
||||
| |--rustfs-zh.env // env config in Chinese
|
||||
| |--.example.obs.env // example env config
|
||||
| |--event.example.toml // event config
|
||||
```
|
||||
@@ -51,6 +51,10 @@ ExecStart=/usr/local/bin/rustfs \
|
||||
EnvironmentFile=-/etc/default/rustfs
|
||||
ExecStart=/usr/local/bin/rustfs $RUSTFS_VOLUMES $RUSTFS_OPTS
|
||||
|
||||
# standard output and error log configuration
|
||||
StandardOutput=append:/data/deploy/rust/logs/rustfs.log
|
||||
StandardError=append:/data/deploy/rust/logs/rustfs-err.log
|
||||
|
||||
# resource constraints
|
||||
LimitNOFILE=1048576
|
||||
# 设置文件描述符上限为 1048576,支持高并发连接。
|
||||
|
||||
@@ -31,6 +31,10 @@ ExecStart=/usr/local/bin/rustfs \
|
||||
EnvironmentFile=-/etc/default/rustfs
|
||||
ExecStart=/usr/local/bin/rustfs $RUSTFS_VOLUMES $RUSTFS_OPTS
|
||||
|
||||
# service log configuration
|
||||
StandardOutput=append:/data/deploy/rust/logs/rustfs.log
|
||||
StandardError=append:/data/deploy/rust/logs/rustfs-err.log
|
||||
|
||||
# resource constraints
|
||||
LimitNOFILE=1048576
|
||||
LimitNPROC=32768
|
||||
|
||||
+13
-3
@@ -32,7 +32,17 @@ openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -node
|
||||
### TLS File
|
||||
|
||||
```text
|
||||
rustfs_public.crt #api cert.pem
|
||||
|
||||
rustfs_private.key #api key.pem
|
||||
cd deploy/certs/
|
||||
ls -la
|
||||
├── rustfs_cert.pem // Default|fallback certificate
|
||||
├── rustfs_key.pem // Default|fallback private key
|
||||
├── example.com/ // certificate directory of specific domain names
|
||||
│ ├── rustfs_cert.pem
|
||||
│ └── rustfs_key.pem
|
||||
├── api.example.com/
|
||||
│ ├── rustfs_cert.pem
|
||||
│ └── rustfs_key.pem
|
||||
└── cdn.example.com/
|
||||
├── rustfs_cert.pem
|
||||
└── rustfs_key.pem
|
||||
```
|
||||
Reference in New Issue
Block a user