diff --git a/docs/account.md b/docs/account.md index c3f1bb32..d812fb29 100644 --- a/docs/account.md +++ b/docs/account.md @@ -10,7 +10,7 @@ $ curl "http://admin:password@127.0.0.1:8080/api/v2/token" curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiQVBJIl0sImV4cCI6MTYxMzMzNTI2MSwianRpIjoiYzBrb2gxZmNkcnBjaHNzMGZwZmciLCJuYmYiOjE2MTMzMzQ2MzEsInBlcm1pc3Npb25zIjpbIioiXSwic3ViIjoiYUJ0SHUwMHNBUmxzZ29yeEtLQ1pZZWVqSTRKVTlXbThHSGNiVWtWVmc1TT0iLCJ1c2VybmFtZSI6ImFkbWluIn0.WiyqvUF-92zCr--y4Q_sxn-tPnISFzGZd_exsG-K7ME" "http://127.0.0.1:8080/api/v2/dumpdata?output-data=1" ``` -the dump is a JSON with users, folder and admins. +the dump is a JSON with all SFTPGo data including users, folders, admins. These properties are stored inside the configured data provider. diff --git a/docs/azure-blob-storage.md b/docs/azure-blob-storage.md index e3e7aabc..62b608d3 100644 --- a/docs/azure-blob-storage.md +++ b/docs/azure-blob-storage.md @@ -17,4 +17,4 @@ For multipart uploads you can customize the parts size and the upload concurrenc The configured container must exist. -This backend is very similar to the [S3](./s3.md) backend, and it has the same limitations. +This backend is very similar to the [S3](./s3.md) backend, and it has the same limitations. As with S3 `chtime` will fail with the default configuration, you can install the [metadata plugin](https://github.com/sftpgo/sftpgo-plugin-metadata) to make it work and thus be able to preserve/change file modification times. diff --git a/docs/build-from-source.md b/docs/build-from-source.md index c9e1af6f..95c6be5d 100644 --- a/docs/build-from-source.md +++ b/docs/build-from-source.md @@ -13,9 +13,6 @@ The following build tags are available: - `nosqlite`, disable SQLite data provider, default enabled - `noportable`, disable portable mode, default enabled - `nometrics`, disable Prometheus metrics, default enabled -- `novaultkms`, disable Vault transit secret engine, default enabled -- `noawskms`, disable AWS KMS, default enabled -- `nogcpkms`, disable GCP KMS, default enabled If no build tag is specified the build will include the default features. diff --git a/docs/google-cloud-storage.md b/docs/google-cloud-storage.md index 681bee7c..6038c93f 100644 --- a/docs/google-cloud-storage.md +++ b/docs/google-cloud-storage.md @@ -8,4 +8,4 @@ You can optionally specify a [storage class](https://cloud.google.com/storage/do The configured bucket must exist. -This backend is very similar to the [S3](./s3.md) backend, and it has the same limitations. +This backend is very similar to the [S3](./s3.md) backend, and it has the same limitations. As with S3 `chtime` will fail with the default configuration, you can install the [metadata plugin](https://github.com/sftpgo/sftpgo-plugin-metadata) to make it work and thus be able to preserve/change file modification times. diff --git a/docs/s3.md b/docs/s3.md index d988cc28..b9447cc6 100644 --- a/docs/s3.md +++ b/docs/s3.md @@ -20,7 +20,7 @@ The configured bucket must exist. Some SFTP commands don't work over S3: -- `chtimes`, `chown` and `chmod` will fail. If you want to silently ignore these method set `setstat_mode` to `1` or `2` in your configuration file +- `chown` and `chmod` will fail. If you want to silently ignore these method set `setstat_mode` to `1` or `2` in your configuration file - `truncate`, `symlink`, `readlink` are not supported - opening a file for both reading and writing at the same time is not supported - resuming uploads is not supported @@ -33,3 +33,4 @@ Other notes: - For server side encryption, you have to configure the mapped bucket to automatically encrypt objects. - A local home directory is still required to store temporary files. - Clients that require advanced filesystem-like features such as `sshfs` are not supported. +- `chtime` will fail with the default configuration, you can install the [metadata plugin](https://github.com/sftpgo/sftpgo-plugin-metadata) to make it work and thus be able to preserve/change file modification times. diff --git a/docs/service.md b/docs/service.md index a736b916..81579c2b 100644 --- a/docs/service.md +++ b/docs/service.md @@ -46,7 +46,7 @@ sudo sh -c 'echo "SFTPGO_DATA_PROVIDER__CREDENTIALS_PATH=/var/lib/sftpgo/credent # also set the provider's PATH as env var to get initprovider to work with SQLite provider: #export SFTPGO_DATA_PROVIDER__NAME=/var/lib/sftpgo/sftpgo.db # install static files and templates for the web UI -sudo cp -r static templates /usr/share/sftpgo/ +sudo cp -r static templates openapi /usr/share/sftpgo/ # set files and directory permissions sudo chown -R sftpgo:sftpgo /etc/sftpgo /var/lib/sftpgo sudo chmod 750 /etc/sftpgo /var/lib/sftpgo @@ -91,7 +91,7 @@ sudo chown root:wheel /usr/local/opt/sftpgo/init/com.github.drakkan.sftpgo.plist # install the default configuration file, edit it if required sudo cp sftpgo.json /usr/local/opt/sftpgo/etc/ # install static files and templates for the web UI -sudo cp -r static templates /usr/local/opt/sftpgo/usr/share/ +sudo cp -r static templates openapi /usr/local/opt/sftpgo/usr/share/ # initialize the configured data provider # if you want to use MySQL or PostgreSQL you need to create the configured database before running the initprovider command sudo /usr/local/opt/sftpgo/bin/sftpgo initprovider -c /usr/local/opt/sftpgo/etc/ diff --git a/init/com.github.drakkan.sftpgo.plist b/init/com.github.drakkan.sftpgo.plist index 062606ee..58b83f8d 100644 --- a/init/com.github.drakkan.sftpgo.plist +++ b/init/com.github.drakkan.sftpgo.plist @@ -14,6 +14,8 @@ /usr/local/opt/sftpgo/usr/share/templates SFTPGO_HTTPD__STATIC_FILES_PATH /usr/local/opt/sftpgo/usr/share/static + SFTPGO_HTTPD__OPENAPI_PATH + /usr/local/opt/sftpgo/usr/share/openapi SFTPGO_HTTPD__BACKUPS_PATH /usr/local/opt/sftpgo/var/lib/backups SFTPGO_DATA_PROVIDER__CREDENTIALS_PATH