-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,640 additions
and
883 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ Also you can disable access log for `/health` endpoint, by using `--disable-heal | |
--url "/files" \ | ||
--log-level "INFO" \ | ||
--cors "my.*.domain.com,your.*.domain.com" \ | ||
--disable-health-access-log "yes" | ||
--disable-health-access-log | ||
``` | ||
|
||
=== "ENV" | ||
|
@@ -52,12 +52,32 @@ Also you can disable access log for `/health` endpoint, by using `--disable-heal | |
export RUSTUS_URL="/files" | ||
export RUSTUS_LOG_LEVEL="INFO" | ||
export RUSTUS_CORS="my.*.domain.com,your.*.domain.com" | ||
export RUSTUS_DISABLE_HEALTH_ACCESS_LOG="yes" | ||
export RUSTUS_DISABLE_HEALTH_ACCESS_LOG="true" | ||
|
||
rustus | ||
``` | ||
|
||
|
||
## Sentry integration | ||
|
||
If you have sentry and want to see all erros in your sentry project, | ||
please provide sentry-dsn to rustus. | ||
|
||
=== "CLI" | ||
|
||
``` bash | ||
rustus --sentry-dsn "https://[email protected]/11" \ | ||
--sentry-sample-rate 1.0 | ||
``` | ||
|
||
=== "ENV" | ||
|
||
``` bash | ||
export RUSTUS_SENTRY_DSN="https://[email protected]/11" | ||
export RUSTUS_SENTRY_SAMPLE_RATE="1.0" | ||
|
||
rustus | ||
``` | ||
|
||
|
||
## Configuring storage | ||
|
@@ -105,7 +125,7 @@ data | |
=== "CLI" | ||
|
||
``` bash | ||
rustus --force-fsync "yes" \ | ||
rustus --force-fsync \ | ||
--storage "file-storage" \ | ||
--data-dir "./data/" \ | ||
--dir-structure "{year}/{month}/{day}" | ||
|
@@ -117,7 +137,7 @@ data | |
export RUSTUS_STORAGE="file-storage" | ||
export RUSTUS_DATA_DIR="./data/" | ||
export RUSTUS_DIR_STRUCTURE="{year}/{month}/{day}" | ||
export RUSTUS_FORCE_FSYNC="yes" | ||
export RUSTUS_FORCE_FSYNC="true" | ||
|
||
rustus | ||
``` | ||
|
@@ -167,9 +187,9 @@ Required parameter are only `--s3-url` and `--s3-bucket`. | |
--s3-profile "my_profile" \ | ||
--s3-security-token "token" \ | ||
--s3-session-token "token" \ | ||
--s3-force-path-style "yes" \ | ||
--s3-force-path-style \ | ||
--s3-headers '{"x-amz-acl": "public-read"}' \ | ||
--force-fsync "yes" \ | ||
--force-fsync \ | ||
--data-dir "./data/" \ | ||
--dir-structure "{year}/{month}/{day}" | ||
``` | ||
|
@@ -189,7 +209,7 @@ Required parameter are only `--s3-url` and `--s3-bucket`. | |
export RUSTUS_S3_HEADERS='{"x-amz-acl": "public-read"}' | ||
export RUSTUS_DATA_DIR="./data/" | ||
export RUSTUS_DIR_STRUCTURE="{year}/{month}/{day}" | ||
export RUSTUS_FORCE_FSYNC="yes" | ||
export RUSTUS_FORCE_FSYNC="true" | ||
|
||
rustus | ||
``` | ||
|
@@ -317,15 +337,15 @@ By default all extensions are enabled. | |
=== "CLI" | ||
|
||
``` bash | ||
rustus --remove-parts "yes" \ | ||
rustus --remove-parts \ | ||
--tus-extensions "getting,creation,termination,creation-with-upload,creation-defer-length,concatenation,checksum" | ||
``` | ||
|
||
=== "ENV" | ||
|
||
``` bash | ||
export RUSTUS_TUS_EXTENSIONS="getting,creation,termination,creation-with-upload,creation-defer-length,concatenation,checksum" | ||
export RUSTUS_REMOVE_PARTS="yes" | ||
export RUSTUS_REMOVE_PARTS="true" | ||
|
||
rustus | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.