Skip to content

Commit

Permalink
Update galaxy.yml.sample for prefix config
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jan 15, 2019
1 parent 105a1d8 commit b6d5675
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 6 deletions.
13 changes: 11 additions & 2 deletions config/galaxy.yml.sample
Expand Up @@ -66,6 +66,14 @@ uwsgi:
# Reports, etc.) that you are loading.
module: galaxy.webapps.galaxy.buildapp:uwsgi_app()

# Mount the web application (e.g. Galaxy, Reports, etc.) at the given
# prefix. Cannot be used together with 'module:' above.
#mount: /galaxy=galaxy.webapps.galaxy.buildapp:uwsgi_app()

# Make uWSGI rewrite PATH_INFO and SCRIPT_NAME according to mount-
# points. Set this to true if a prefix is used.
manage-script-name: false

# It is usually a good idea to set this to ``true`` if processes is
# greater than 1.
thunder-lock: false
Expand All @@ -91,8 +99,9 @@ uwsgi:
galaxy:

# If running behind a proxy server and Galaxy is served from a
# subdirectory, enable the proxy-prefix filter and set the prefix in
# the [filter:proxy-prefix] section above.
# subdirectory, enable the proxy-prefix filter, uncomment the 'mount:
# /galaxy=galaxy.webapps.galaxy.buildapp:uwsgi_app()' line and enable
# `manage-script-name` in the uwsgi config section.
#filter-with: proxy-prefix

# If proxy-prefix is enabled and you're running more than one Galaxy
Expand Down
8 changes: 8 additions & 0 deletions config/reports.yml.sample
Expand Up @@ -48,6 +48,14 @@ uwsgi:
# Reports, etc.) that you are loading.
module: galaxy.webapps.reports.buildapp:uwsgi_app()

# Mount the web application (e.g. Galaxy, Reports, etc.) at the given
# prefix. Cannot be used together with 'module:' above.
#mount: /galaxy=galaxy.webapps.galaxy.buildapp:uwsgi_app()

# Make uWSGI rewrite PATH_INFO and SCRIPT_NAME according to mount-
# points. Set this to true if a prefix is used.
manage-script-name: false

# It is usually a good idea to set this to ``true`` if processes is
# greater than 1.
thunder-lock: false
Expand Down
8 changes: 8 additions & 0 deletions config/tool_shed.yml.sample
Expand Up @@ -48,6 +48,14 @@ uwsgi:
# Reports, etc.) that you are loading.
module: galaxy.webapps.tool_shed.buildapp:uwsgi_app()

# Mount the web application (e.g. Galaxy, Reports, etc.) at the given
# prefix. Cannot be used together with 'module:' above.
#mount: /galaxy=galaxy.webapps.galaxy.buildapp:uwsgi_app()

# Make uWSGI rewrite PATH_INFO and SCRIPT_NAME according to mount-
# points. Set this to true if a prefix is used.
manage-script-name: false

# It is usually a good idea to set this to ``true`` if processes is
# greater than 1.
thunder-lock: false
Expand Down
5 changes: 3 additions & 2 deletions doc/source/admin/galaxy_options.rst
Expand Up @@ -4,8 +4,9 @@

:Description:
If running behind a proxy server and Galaxy is served from a
subdirectory, enable the proxy-prefix filter and set the prefix in
the [filter:proxy-prefix] section above.
subdirectory, enable the proxy-prefix filter, uncomment the
'mount: /galaxy=galaxy.webapps.galaxy.buildapp:uwsgi_app()' line
and enable `manage-script-name` in the uwsgi config section.
:Default: ``proxy-prefix``
:Type: str

Expand Down
10 changes: 10 additions & 0 deletions lib/galaxy/webapps/config_manage.py
Expand Up @@ -111,6 +111,16 @@
'default': '$uwsgi_module',
'type': 'str',
}),
('#mount', {
'desc': """Mount the web application (e.g. Galaxy, Reports, etc.) at the given prefix. Cannot be used together with 'module:' above.""",
'default': '/galaxy=galaxy.webapps.galaxy.buildapp:uwsgi_app()',
'type': 'str',
}),
('manage-script-name', {
'desc': """Make uWSGI rewrite PATH_INFO and SCRIPT_NAME according to mount-points. Set this to true if a prefix is used.""",
'default': False,
'type': 'bool',
}),
('thunder-lock', {
'desc': """It is usually a good idea to set this to ``true`` if processes is greater than 1.""",
'default': False,
Expand Down
4 changes: 2 additions & 2 deletions lib/galaxy/webapps/galaxy/config_schema.yml
Expand Up @@ -40,8 +40,8 @@ mapping:
required: false
desc: |
If running behind a proxy server and Galaxy is served from a subdirectory,
enable the proxy-prefix filter and set the prefix in the
[filter:proxy-prefix] section above.
enable the proxy-prefix filter, uncomment the 'mount: /galaxy=galaxy.webapps.galaxy.buildapp:uwsgi_app()'
line and enable `manage-script-name` in the uwsgi config section.
cookie_path:
type: str
Expand Down

0 comments on commit b6d5675

Please sign in to comment.