Skip to content

Commit 2e78724

Browse files
authoredSep 24, 2024
Support overridding the default LiteFS Cloud endpoint (#437)
1 parent 27f96af commit 2e78724

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎cmd/litefs/mount_linux.go

+4
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,10 @@ func (c *MountCommand) initBackupConfigFromEnv(ctx context.Context) {
451451
return
452452
}
453453

454+
if env := strings.TrimSpace(os.Getenv("LITEFS_CLOUD_ENDPOINT")); env != "" {
455+
c.Config.Backup.URL = env
456+
}
457+
454458
// Only set if backup is not configure or if it's configured for LiteFS Cloud.
455459
if c.Config.Backup.Type != "" && c.Config.Backup.Type != "litefs-cloud" {
456460
return

0 commit comments

Comments
 (0)