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.
108
+
**Galaxy Themes**
109
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.
110
+
From release 22.01, Galaxy users can select between different UI [themes][themes]. You can define themes using the
111
+
`galaxy_themes`variable, the syntax of which is the same as the `themes_conf.yml` file described [in the themes
112
+
training][themes].
113
+
114
+
The `galaxy_manage_themes` variable controls whether the role manages theme configs and is automatically enabled if
115
+
`galaxy_themes`is defined. If you just want to load the the sample themes from Galaxy's
116
+
[themes_conf.yml.sample][themes_conf_sample] without defining your own, you can manually set `galaxy_manage_themes` to
From release 22.01 Galaxy can serve different static content and themes per host (e.g. subdomain).
125
+
126
+
By setting `galaxy_manage_subdomain_static: yes` you enable the creation of static directories and configuration per host.
111
127
112
128
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
129
114
130
~~~bash
115
131
files/galaxy/static
116
132
├──<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
133
+
│ └── static
134
+
│ ├── dist (optional)
135
+
│ │ └── some-image.png
136
+
│ ├── images (optional)
137
+
│ │ └── more-content.jpg
138
+
│ └── welcome.html (optional, galaxyproject.org will be displayed otherwise.)
125
139
├── <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
140
+
│ └── static
141
+
│ ├── dist (optional)
142
+
│ │ ├── another-static-image.svg
143
+
│ │ └── more-static-content-2.svg
144
+
│ └── welcome.html (optional)
133
145
... (and many more subdomains)
134
146
~~~
135
147
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.
148
+
Where the <subdomain-name-1> should exactly match your subdomain's name. The subdirectory `static` is mandatory, while all subdirectories in `static` are optional. Which subdirectories and files are copied is managed by the `static_galaxy_themes_keys` variable.
138
149
139
150
Also make sure that you set `galaxy_themes_welcome_url_prefix`, so your welcome pages are templated correctly.
140
151
141
152
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 Gunicorn or `ini-paste` for the traditional PasteDeploy-style INI file
149
-
- `galaxy_app_config_section` (default: depends on `galaxy_config_style`): The config file section under which the
150
-
Galaxy config should be placed (and the key in `galaxy_config` in which the Galaxy config can be found. If
151
-
`galaxy_config_style`is `yaml` the default is `galaxy`. If `galaxy_config_style` is `ini-paste`, the default is `app:main`.
154
+
Each subdomain can be given its own theme, which is defined under the `theme` key of the subdomain's entry in `galaxy_themes_subdomains`. This theme will be the default for the subdomain, and any other themes defined globally for the server will also be available for the user to select. If a subdomain's `theme` is not defined, the global default is used. An example is provided in [defaults/main.yml](defaults/main.yml).
0 commit comments