-
Notifications
You must be signed in to change notification settings - Fork 11
Rename default tenant in single-tenant instance #15
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Wouldn't it be sufficient to make |
Indeed, I would say it is the simplest way. #16 Thanks |
I have added a PR to set version to As I am not familiar with uv lock --upgrade-package qwc-services-core==1.4.5 Could you please confirm ? May we document this in the project ? I will submit all the PRs then. Thanks |
Sorry seeing this now. You can use the justfile [1] and then in the dir of the service you want to update (say
This will upgrade the [1] upgrade-all |
Thanks, I have started to do it more manually 😅 with I will continue with your method with other services. |
@manisandro I think I have submitted all the PRs to upgrade qwc-services-core to 1.4.5 by using Tags are not pushed, I could push them once PRs are merged in master/main. I will try to submit some other commands later in justfile which could be useful. |
Thanks. On my part feel free to merge and tag! |
I think all tags have been pushed. |
Thanks! |
Hi,
I was trying to deploy qwc-docker with a single tenant but I would like to set its name to something different than
default
.I have set env var
QWC_TENANT
tomytenant
. But I saw that having atenant_name
is one of conditions to consider multitenancy https://github.com/qwc-services/qwc-services-core/blob/master/qwc_services_core/tenant_handler.py#L25 so then I need to deal with TENANT_ACCESS_COOKIE_PATH and/or OVERRIDE_ACCESS_COOKIE_PATH and/or TENANT_PATH_PREFIX to be able to use qwc-services with renamed single tenant.I finally set
TENANT_PATH_PREFIX
to''
and it seems to work fine.I did not test the whole application but my first error when renaming the tenant name (only by setting
QWC_TENANT
) was at the login page. qwc-db-auth service can not load style file becauseurl_for
is prefixing static URL with JWT_ACCESS_COOKIE_PATH. (e.g try to access to/mytenant/style/style.css
).I was wondering some questions:
QWC_TENANT
and havingtenant_name
is really a multitenancy case ?Thanks for your inputs.
Benoît
The text was updated successfully, but these errors were encountered: