mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 00:50:31 +00:00
arguments: document --arg form
go flag library supports one or two minus signs, they are equivalent. Other Go command line parsers such as kingpin only support the -- variant
This commit is contained in:
parent
fe3e1db13a
commit
73c61cda31
2 changed files with 9 additions and 9 deletions
16
README.md
16
README.md
|
@ -49,13 +49,13 @@ Alternately you can use distro packages:
|
|||
|
||||
The `sftpgo` executable supports the following command line flags:
|
||||
|
||||
- `-config-dir` string. Location of the config dir. This directory should contain the `sftpgo.conf` configuration file and is used as the base for files with a relative path (eg. the private keys for the SFTP server, the SQLite database if you use SQLite as data provider). The default value is "."
|
||||
- `-log-file-path` string. Location for the log file, default "sftpgo.log"
|
||||
- `-log-max-size` int. Maximum size in megabytes of the log file before it gets rotated. Default 10
|
||||
- `-log-max-backups` int. Maximum number of old log files to retain. Default 5
|
||||
- `-log-max-age` int. Maximum number of days to retain old log files. Default 28
|
||||
- `-log-compress` boolean. Determine if the rotated log files should be compressed using gzip
|
||||
- `-log-verbose` boolean. Enable verbose logs. Default `true`
|
||||
- `--config-dir` string. Location of the config dir. This directory should contain the `sftpgo.conf` configuration file and is used as the base for files with a relative path (eg. the private keys for the SFTP server, the SQLite database if you use SQLite as data provider). The default value is "."
|
||||
- `--log-file-path` string. Location for the log file, default "sftpgo.log"
|
||||
- `--log-max-size` int. Maximum size in megabytes of the log file before it gets rotated. Default 10
|
||||
- `--log-max-backups` int. Maximum number of old log files to retain. Default 5
|
||||
- `--log-max-age` int. Maximum number of days to retain old log files. Default 28
|
||||
- `--log-compress` boolean. Determine if the rotated log files should be compressed using gzip
|
||||
- `--log-verbose` boolean. Enable verbose logs. Default `true`
|
||||
|
||||
If you don't configure any private host keys, the daemon will use `id_rsa` in the configuration directory. If that file doesn't exist, the daemon will attempt to autogenerate it (if the user that executes SFTPGo has write access to the config-dir). The server supports any private key format supported by [`crypto/ssh`](https://github.com/golang/crypto/blob/master/ssh/keys.go#L32).
|
||||
|
||||
|
@ -192,7 +192,7 @@ REST API is designed to run on localhost or on a trusted network, if you need ht
|
|||
|
||||
The OpenAPI 3 schema for the exposed API can be found inside the source tree: [openapi.yaml](https://github.com/drakkan/sftpgo/tree/master/api/schema/openapi.yaml "OpenAPI 3 specs").
|
||||
|
||||
A sample cli client for the REST API can be find inside the source tree: [scripts](https://github.com/drakkan/sftpgo/tree/master/scripts "scripts") directory.
|
||||
A sample CLI client for the REST API can be find inside the source tree: [scripts](https://github.com/drakkan/sftpgo/tree/master/scripts "scripts") directory.
|
||||
|
||||
## Logs
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ User=root
|
|||
Group=root
|
||||
Type=simple
|
||||
WorkingDirectory=/etc/sftpgo
|
||||
ExecStart=/usr/bin/sftpgo -config-dir /etc/sftpgo -log-file-path /var/log/sftpgo.log
|
||||
ExecStart=/usr/bin/sftpgo --config-dir /etc/sftpgo --log-file-path /var/log/sftpgo.log
|
||||
KillMode=mixed
|
||||
Restart=always
|
||||
RestartSec=10s
|
||||
|
|
Loading…
Reference in a new issue