|
6 | 6 |
|
7 | 7 | Rails.application.configure do |
8 | 8 | # Configure Litestream through environment variables. Use Rails encrypted credentials for secrets. |
9 | | - # |
10 | 9 | # litestream_credentials = Rails.application.credentials.litestream |
11 | 10 |
|
12 | | - # Replica-specific bucket location. |
13 | | - # |
14 | | - # This will be your bucket's URL without the `https://` prefix. |
| 11 | + # Replica-specific bucket location. This will be your bucket's URL without the `https://` prefix. |
15 | 12 | # For example, if you used DigitalOcean Spaces, your bucket URL could look like: |
16 | 13 | # |
17 | 14 | # https://myapp.fra1.digitaloceanspaces.com |
|
22 | 19 | # |
23 | 20 | # config.litestream.replica_bucket = litestream_credentials&.replica_bucket |
24 | 21 | # |
25 | | - # |
26 | | - # Replica-specific authentication key |
27 | | - # |
28 | | - # Litestream needs authentication credentials to access your storage provider bucket. |
29 | | - # |
| 22 | + # Replica-specific authentication key. Litestream needs authentication credentials to access your storage provider bucket. |
30 | 23 | # config.litestream.replica_key_id = litestream_credentials&.replica_key_id |
31 | 24 | # |
32 | | - # |
33 | | - # Replica-specific secret key |
34 | | - # |
35 | | - # Litestream needs authentication credentials to access your storage provider bucket. |
36 | | - # |
| 25 | + # Replica-specific secret key. Litestream needs authentication credentials to access your storage provider bucket. |
37 | 26 | # config.litestream.replica_access_key = litestream_credentials&.replica_access_key |
38 | 27 | # |
39 | | - # |
40 | | - # Replica-specific region |
41 | | - # |
42 | | - # Optionally specifies the bucket’s region. Only used for AWS S3 & Backblaze B2. |
43 | | - # |
| 28 | + # Replica-specific region. Set the bucket’s region. Only used for AWS S3 & Backblaze B2. |
44 | 29 | # config.litestream.replica_region = "us-east-1" |
45 | 30 | # |
46 | | - # |
47 | | - # Replica-specific endpoint |
48 | | - # |
49 | | - # Optionally specifies the endpoint URL of the S3-compatible service. Only required for non-AWS services. |
50 | | - # |
| 31 | + # Replica-specific endpoint. Set the endpoint URL of the S3-compatible service. Only required for non-AWS services. |
51 | 32 | # config.litestream.replica_endpoint = "endpoint.your-objectstorage.com" |
52 | 33 |
|
53 | 34 | # Configure the default Litestream config path |
54 | | - # |
55 | 35 | # config.config_path = Rails.root.join("config", "litestream.yml") |
56 | 36 |
|
57 | 37 | # Configure the Litestream dashboard |
58 | 38 | # |
59 | 39 | # Set the default base controller class |
60 | | - # |
61 | 40 | # config.litestream.base_controller_class = "MyApplicationController" |
62 | 41 | # |
63 | 42 | # Set authentication credentials for Litestream dashboard |
64 | | - # |
65 | 43 | # config.litestream.username = Rails.application.credentials.dig(:litestream, :username) |
66 | 44 | # config.litestream.password = Rails.application.credentials.dig(:litestream, :password) |
67 | 45 | end |
0 commit comments