1 month ago

nova multitenancy: how to change dinamically database name

Posted 1 month ago by bitsense


In nova i'm trying to change the database name of the default connection according to multiple domains. I've registered in nova config a custom middleware (wich is working outside nova) to set up the database name in the default connection. Nova is executing the middleware and the connection is correctly changed but nova continue to use the default connection database defined in the .env Am I missing something?

Thanks! Luca

Please sign in or create an account to participate in this conversation.