Skip to content

Commit

Permalink
ui: allow adding an additional value for ProxyPass and `ProxyPassRe…
Browse files Browse the repository at this point in the history
…verse` directive
  • Loading branch information
maany authored and bari12 committed Apr 18, 2024
1 parent f3db13f commit 5b317a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ This variable sets the server admin in the apache config.

This variable sets the MPM mode. The default is "event".

### `RUCIO_HTTPD_ADDITIONAL_PROXY_CONF`

This variable can be used to add an additional `ProxyPass` and corresponding `ProxyPassReverse` directive to the apache config. This can be useful if you want to add additional proxies to the WebUI. The value should be a string with the format `/{path} {url}`. For example `RUCIO_HTTPD_ADDITIONAL_PROXY_CONF="/foo http://bar"` will add the following lines to the apache config located at `/etc/httpd/conf.d/rucio.conf` inside the container:

```bash
ProxyPass /foo http://bar
ProxyPassReverse /foo http://bar
```

## `RUCIO_CFG` configuration parameters:

Environment variables can be used to set values for the auto-generated rucio.cfg. The names are derived from the actual names in the configuration file prefixed by `RUCIO_CFG`, e.g., the `default` value in the `database` section becomes `RUCIO_CFG_DATABASE_DEFAULT`.
Expand Down
4 changes: 4 additions & 0 deletions ui/rucio.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ CacheRoot /tmp
ProxyPass /authproxy {{ RUCIO_AUTH_PROXY_SCHEME | default('https') }}://{{ RUCIO_AUTH_PROXY }}
ProxyPassReverse /authproxy {{ RUCIO_AUTH_PROXY_SCHEME | default('https') }}://{{ RUCIO_AUTH_PROXY }}
{% endif %}
{% if RUCIO_HTTPD_ADDITIONAL_PROXY_CONF is defined %}
ProxyPass {{ RUCIO_HTTPD_ADDITIONAL_PROXY_CONF}}
ProxyPassReverse {{ RUCIO_HTTPD_ADDITIONAL_PROXY_CONF }}
{% endif %}
{% endmacro %}

<VirtualHost *:80>
Expand Down

0 comments on commit 5b317a4

Please sign in to comment.