diff --git a/cmd/server/main.go b/cmd/server/main.go index d1aae690..e07e43d1 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -9,7 +9,7 @@ import ( "github.com/spf13/pflag" "github.com/spf13/viper" - _ "github.com/openinfradev/tks-api/api/swagger" + "github.com/openinfradev/tks-api/api/swagger" "github.com/openinfradev/tks-api/internal/database" "github.com/openinfradev/tks-api/internal/keycloak" "github.com/openinfradev/tks-api/internal/mail" @@ -74,6 +74,7 @@ func init() { log.Error(err) } + swagger.SwaggerInfo.Host = viper.GetString("external-address") } // @title tks-api service