-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for rewriting only specifc host bases (#1328)
On `gompa` rclone wouldn't work via `localhost` anymore since `HostBucketEnabled` was set to `true`. Problem is without this setting, access per proper domain (e.g. `bucket.example.com`) doesn't work anymore but with it IPs and `localhost` will be rewritten incorrectly. The solution is to allow for configuring `HostBucketBases` which is already supported by `gofakes3` and allows for configuring only specific domains for which the bucket is extracted from the `host`. That way `localhost` and `127.0.0.1` still work but if specified `bucket.example.com` will also work.
- Loading branch information
1 parent
f59fe5f
commit 8ad5541
Showing
9 changed files
with
68 additions
and
2,205 deletions.
There are no files selected for viewing
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
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.