rucio / containers

Containers for Rucio
Apache License 2.0
9 stars 55 forks source link

ui: add `RUCIO_HTTPD_ADDITIONAL_REDIRECTS` environment variable #330

Closed maany closed 3 months ago

maany commented 3 months ago

This variable can be used to add an additional Redirect in the apache config. The value should be a string with the format /{path} {url}.

For example RUCIO_HTTPD_ADDITIONAL_REDIRECTS="/foo http://bar" will add the following lines to the apache config located at /etc/httpd/conf.d/rucio.conf inside the container:

    Redirect /foo http://bar

You can add multiple refirects if you specify the value of the environment variable in the following format: /{path1} {url1}, /{path2} {url2}, .... For example RUCIO_HTTPD_ADDITIONAL_REDIRECTS="/foo http://bar, /baz http://qux" will add the following lines to the apache config located at /etc/httpd/conf.d/rucio.conf inside the container:

    Redirect /foo http://bar
    Redirect /baz http://qux