We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey 👋
Love the work!
Do you have an example of multi tenancy via domains with individual databases? For example:
Main domain: mysaasapp.com Tenant domain: tenantname.mysaasapp.com Tenant 2 domain tenanttwoname.mysaasapp.com
etc? From what I read, its supported, but unsure on implementation.
The text was updated successfully, but these errors were encountered:
change this line
saas/examples/gorm/main.go
Lines 136 to 137 in 0b157bc
import( ... shttp "github.com/go-saas/saas/http" ... ) ... r.Use(sgin.MultiTenancy(tenantStore, sgin.WithMultiTenancyOption(shttp.NewWebMultiTenancyOption("", "([-a-z0-9]+)\\.mysaasapp\\.com"))))
adjust your own tenant name regex format
see https://github.com/go-saas/saas/blob/main/http/domain_tenant_resolve_contrib.go
Sorry, something went wrong.
No branches or pull requests
Hey 👋
Love the work!
Do you have an example of multi tenancy via domains with individual databases? For example:
Main domain: mysaasapp.com
Tenant domain: tenantname.mysaasapp.com
Tenant 2 domain tenanttwoname.mysaasapp.com
etc? From what I read, its supported, but unsure on implementation.
The text was updated successfully, but these errors were encountered: