You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend/docs/docs/deploy/customization.md
+63-8Lines changed: 63 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,33 +32,87 @@ crawler_channels:
32
32
33
33
## Storage
34
34
35
-
The `storage` setting is used to specify primary and replica storage for a Browsertrix deployment. All configured storage options must be S3-compatible buckets. At minimum, there must be one configured storage option, as can be seen in the default configuration:
35
+
The `storage` setting is used to specify primary and replica storage for a Browsertrix deployment. All configured storage options must be S3-compatible buckets. At minimum, there must be one configured storage option, which includes a `is_default_primary: true`.
36
+
37
+
### Using Local Minio Storage
38
+
39
+
Browsertrix includes a built-in Minio storage service, which is enabled by default (`minio_local: true` is set).
40
+
41
+
The configuration for this is as follows:
42
+
36
43
37
44
```yaml
38
45
storages:
39
46
- name: "default"
40
47
type: "s3"
41
48
access_key: "ADMIN"
42
49
secret_key: "PASSW0RD"
43
-
bucket_name: *local_bucket_name
50
+
bucket_name: btrix-data
44
51
45
52
endpoint_url: "http://local-minio.default:9000/"
53
+
access_endpoint_url: /data/
46
54
```
47
55
48
-
It is possible to add one or more replica storage locations. If replica locations are enabled, all stored content in the application will be automatically replicated to each configured replica storage location in background jobs after being stored in the default primary storage. If replica locations are enabled, at least one must be set as the default replica location for primary backups. This is indicated with `is_default_replica: True`. If more than one storage location is configured, the primary storage must also be indicated with `is_default_primary: True`.
56
+
The `access_key` and `secret_key` should be changed, otherwise no additional changes are needed, and all local data will be stored in this Minio instance by default.
57
+
58
+
The S3 bucket is accessible via `/data/` path on the same host Browsertrix is running on, eg. `http://localhost:30870/data/`.
59
+
60
+
61
+
### Using External S3 Storage Providers
62
+
63
+
Browsertrix can also be used with external S3 storage providers, which can be configured as follows:
When using an external S3 provider, a custom `access_endpoint_url` can be provided, and the `bucket_name` need to be specified separately.
79
+
This URL is used for direct access to WACZ files, and can be used to specify a custom domain to access the bucket.
80
+
81
+
The `endpoint_url` should be provided in 'path prefix' form (with the bucket after the path), eg:
82
+
`https://s3provider.example.com/bucket/path/`.
83
+
84
+
Browsertrix will handle presigning S3 URLs so that WACZ files (and other data) can be accessed directly, using URLs of the form: `https://s3provider.example.com/bucket/path/to/files/crawl.wacz?signature...`
85
+
86
+
Since the local Minio service is not used, `minio_local: false` can be set to save resource in not deploying Minio.
87
+
88
+
89
+
### Custom Access Endpoint URL
90
+
91
+
It may be useful to provide a custom access endpoint for accessing WACZ files and other data. if the `access_endpoint_url` is provided,
92
+
it should be in 'virtual host' form (the bucket is not added to the path, but is assumed to be the in the host).
93
+
94
+
The host portion of the URL is then replaced with the `access_endpoint_url`. For example, given `endpoint_url: https://s3provider.example.com/bucket/path/` and `access_endpoint_url: https://my-custom-domain.example.com/path/`, a URL to a WACZ files in 'virtual host' form may be `https://bucket.s3provider.example.com/path/to/files/crawl.wacz?signature...`.
95
+
96
+
The `https://bucket.s3provider.example.com/path/` is then replaced with the `https://my-custom-domain.example.com/path/`, and the final URL becomes `https://my-custom-domain.example.com/path/to/files/crawl.wacz?signature...`.
97
+
98
+
99
+
### Storage Replicas
100
+
101
+
It is possible to add one or more replica storage locations. If replica locations are enabled, all stored content in the application will be automatically replicated to each configured replica storage location in background jobs after being stored in the default primary storage. If replica locations are enabled, at least one must be set as the default replica location for primary backups. This is indicated with `is_default_replica: true`. If more than one storage location is configured, the primary storage must also be indicated with `is_default_primary: true`.
49
102
50
-
For example, here is what a storage configuration with two replica locations, one in another bucket on the same Minio S3 service as primary storage as well as another in an external S3 provider:
103
+
For example, here is what a storage configuration with two replica locations, one in another bucket on the same local Minio S3 service as primary storage as well as another in an external S3 provider:
0 commit comments