First, choose a name. In this tutorial we’ll use example
which will be example.usegalaxy.eu
, with a brand of “Example”. Remember to change as appropriate for your name.
└── subdomains/
├── ...
└── example/
└── themes/
└── example.yml
Add your site to the key galaxy_themes_subdomains
. It should look something like:
- name: example
Name is an id used in creation of several filenames internally and in the website repository. It should match [a-z]+
brand_by_host
key in group_vars/gxconfig.yml.
'example.usegalaxy.eu': Example
Add a line to the global_host_filters.py.j2 if you want to modify which tool are shown on your subdomain
In the website repository:
name: example
, so you should create index-example.md
in the root of the website repository.subdomain
, and increase the count
parameter below by one.To run Galaxy Interactive Tools (GxIT) in your subdomain, we need to generate wildcard certificates for you. To do so the following needs to be done:
usegalaxy.eu
in the dns.tf file by adding your domain to this list under it-subdomain
, and increase the count
parameter below by one. Refer to this PRThere is a nginx location directive that redirects the front page request from the subdomain/welcome.html
to the file /opt/multisite-css/$host.html
, hosted locally into the Galaxy server.
This mechanism rely on the default value of the welcome_url variable in the Galaxy configuration. If you change it, then you have to modify the nginx location directive accordingly.