You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From release 22.01 Galaxy can serve different static content per host (e.g. subdomain) and you can set [themes][themes] per host.
109
+
110
+
By setting `galaxy_manage_subdomain_static: yes` you enable the creation of static directories and configuration per host and by setting `galaxy_manage_themes: yes` the role will append your themes_config.yml file specified under `galaxy_themes_conf_path` to your themes files after coping them over to your galaxy server and create the respective configuration.
111
+
112
+
In order to use this feature, you need to create the following directory structure under files/ (customizable with the `galaxy_themes_ansible_file_path` variable):
113
+
114
+
~~~bash
115
+
files/galaxy/static
116
+
├──<subdomain-name-1>
117
+
│ ├── static
118
+
│ │ ├── dist (optional)
119
+
│ │ │ └── some-image.png
120
+
│ │ ├── images (optional)
121
+
│ │ │ └── more-content.jpg
122
+
│ │ └── welcome.html (optional, galaxyproject.org will be displayed otherwise.)
123
+
│ └── themes
124
+
│ └── <subdomain-name-1>.yml
125
+
├── <subdomain-name-2>
126
+
│ ├── static
127
+
│ │ ├── dist (optional)
128
+
│ │ │ ├── another-static-image.svg
129
+
│ │ │ └── more-static-content-2.svg
130
+
│ │ └── welcome.html (optional)
131
+
│ └── themes
132
+
│ └── <subdomain-name-2>.yml
133
+
... (and many more subdomains)
134
+
~~~
135
+
136
+
Where the <subdomain-name-1> should exactly match your subdomain's name. The subdirectories `static` and `themes` are mandatory, as well as the correctly named theme file (if you enabled `galaxy_manage_themes`), while all subdirectories in `static` are optional.
137
+
Which subdirectories and files are copied is managed by the `static_galaxy_themes_keys` variable.
138
+
139
+
Also make sure that you set `galaxy_themes_welcome_url_prefix`, so your welcome pages are templated correctly.
140
+
141
+
It is mandatory to set the variables under `galaxy_themes_subdomains` as shown in the example in [defaults/main.yml](defaults/main.yml). If you enabled the `galaxy_manage_host_filters` variable, you can also specify the tool sections that should be shown for each individual subdomain.
- `galaxy_config_style` (default: `yaml`): The type of Galaxy configuration file to write, `yaml` for the YAML format supported by uWSGI or `ini-paste` for the traditional PasteDeploy-style INI file
@@ -503,3 +541,4 @@ This role was written and contributed to by the following people:
0 commit comments