mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 06:10:54 +03:00
REST API: add location header to 201 responses
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -102,34 +102,11 @@ docker run --name some-sftpgo \
|
||||
-d "drakkan/sftpgo:tag"
|
||||
```
|
||||
|
||||
Setting the SFTPGO_GRACE_TIME environment variable to a non zero value when creating or running a container will enable a graceful shutdown period in seconds that will allow existing connections to hopefully complete before being forcibly closed when the time has passed.
|
||||
Setting the `SFTPGO_GRACE_TIME` environment variable to a non zero value when creating or running a container will enable a graceful shutdown period in seconds that will allow existing connections to hopefully complete before being forcibly closed when the time has passed.
|
||||
|
||||
```shell
|
||||
echo "put 10G.dd" | sftp -P 2022 testuser@sftpgo.example.net
|
||||
|
||||
Connected to sftpgo.example.net.
|
||||
sftp> put 10G.dd
|
||||
Uploading 10G.dd to /10G.dd
|
||||
10G.dd 17% 1758MB 100.9MB/s 01:24 ETA
|
||||
client_loop: send disconnect: Broken pipe
|
||||
Connection closed.
|
||||
```
|
||||
|
||||
While the SFTPGO container is in graceful shutdown mode waiting for the last connection(s) to finish, no new connections will be allowed.
|
||||
|
||||
```shell
|
||||
Fri 23 Dec 2022 08:47:41 AM UTC
|
||||
Connected to sftpgo.example.net.
|
||||
sftp> put d.txt
|
||||
Uploading d.txt to /d.txt
|
||||
d.txt 100% 323 216.9KB/s 00:00
|
||||
Fri 23 Dec 2022 08:47:42 AM UTC
|
||||
kex_exchange_identification: Connection closed by remote host
|
||||
Connection closed.
|
||||
```
|
||||
|
||||
If no connections are active or SFTPGO_GRACE_TIME=0 the container will shutdown immediately.
|
||||
While the SFTPGo container is in graceful shutdown mode waiting for the last connection(s) to finish, no new connections will be allowed.
|
||||
|
||||
If no connections are active or `SFTPGO_GRACE_TIME=0` (default value if unset) the container will shutdown immediately.
|
||||
|
||||
### Where to Store Data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user