Skip to content
New issue

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

How to display multiple catalogues in the web application #214

Closed
Phu2 opened this issue Sep 9, 2024 · 6 comments
Closed

How to display multiple catalogues in the web application #214

Phu2 opened this issue Sep 9, 2024 · 6 comments

Comments

@Phu2
Copy link

Phu2 commented Sep 9, 2024

We have two catalogues and would them displayed in the web application. Is that feasible?

The README states:

Multiple catalogues can be configured in one file.

So i tried in config/configuration.cnf:

id=hbz
catalogue[hbz]=hbz
indexName[hbz]=hbz
dirName[hbz]=hbz

id=hbz-update
catalogue[hbz-update]=hbz_update
indexName[hbz-update]=hbz-update
dirName[hbz-update]=hbz-update

The web app shows only the latter one under the [BASE URL]/qa-catalogue/ path.

I also tried some Apache configurations as suggested in the README:

<Directory /var/www/html/hbz>
  AllowOverride All
  Order allow,deny
  allow from all
</Directory>

but no luck, requesting [BASE URL]/hbz/ results in 404.

It is not clear to me how this is intended to work. The web application is installed under /var/www/html/qa-catalogue. We are using the Docker setup of the main qa-catalogue project.

@Phu2
Copy link
Author

Phu2 commented Sep 9, 2024

Related: #114

@pkiraly
Copy link
Owner

pkiraly commented Sep 9, 2024

You should do it in two steps:

  1. create symbolic links in web server directory:
$ ls -la /var/www/html/
... hbz -> /path/to/qa-catalogue-web
... hbz_update -> /path/to/qa-catalogue-web
  1. adjust the config file

Please add the following line:

multitenant=true

remove the lines

id=hbz
id=hbz-update

@Phu2
Copy link
Author

Phu2 commented Sep 9, 2024

Thanks, it works great! I had already created the symlinks out of suspicion. (In my case it has to be hbz-update not hbz_update) The multitenant config option is not documented anywhere, isn't it?

@pkiraly
Copy link
Owner

pkiraly commented Sep 9, 2024

Unfortunately it is not documented indeed (as I aware nobody wanted to host multiple dashboards). I made a ticket for that so it will be documented, and there will be a section for this topic. Thanks for spotting this issue!

@Phu2
Copy link
Author

Phu2 commented Sep 9, 2024

as I aware nobody wanted to host multiple dashboards

We are happy to be the first ones ;)

@Phu2
Copy link
Author

Phu2 commented Sep 9, 2024

Closing

@Phu2 Phu2 closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants