From e2905b6880f79e71d1df5a1b588f1207a0343b67 Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Fri, 23 May 2025 15:24:47 -0700 Subject: [PATCH] feat: update example service config for virtual host option --- cmd/versitygw/main.go | 2 +- extra/example.conf | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/cmd/versitygw/main.go b/cmd/versitygw/main.go index f94138c..1c4522e 100644 --- a/cmd/versitygw/main.go +++ b/cmd/versitygw/main.go @@ -230,7 +230,7 @@ func initFlags() []cli.Flag { }, &cli.StringFlag{ Name: "virtual-domain", - Usage: "enables the host-style bucket addressing with the specified virtual domain as base.", + Usage: "enables the virtual host style bucket addressing with the specified arg as the base domain", EnvVars: []string{"VGW_VIRTUAL_DOMAIN"}, Destination: &virtualDomain, Aliases: []string{"vd"}, diff --git a/extra/example.conf b/extra/example.conf index c7ac7ea..2344bad 100644 --- a/extra/example.conf +++ b/extra/example.conf @@ -103,6 +103,22 @@ ROOT_SECRET_ACCESS_KEY= # operations will be allowed. #VGW_READ_ONLY=false +# The VGW_VIRTUAL_DOMAIN option enables the virtual host style bucket +# addressing. The path style addressing is the default, and remains enabled +# even when virtual host style is enabled. The VGW_VIRTUAL_DOMAIN option +# specifies the domain name that will be used for the virtual host style +# addressing. For virtual addressing, access to a bucket is in the request +# form: +# https://./ +# for example: https://mybucket.example.com/ where +# VGW_VIRTUAL_DOMAIN=example.com +# and all subdomains of VGW_VIRTUAL_DOMAIN should be reserved for buckets. +# This means that virtual host addressing will generally require a DNS +# entry for each bucket that needs to be accessed. +# The default path style request is of the form: +# https:/// +#VGW_VIRTUAL_DOMAIN= + ############### # Access Logs # ###############