mirror of
https://github.com/Icinga/docker-icingaweb2.git
synced 2025-10-18 18:51:01 +02:00
allow setting remote_user using an intermediate header
This commit is contained in:
parent
c937e99b7e
commit
ec09d0f0ac
@ -55,6 +55,7 @@ COPY php.ini /etc/php/7.4/cli/conf.d/99-docker.ini
|
|||||||
|
|
||||||
RUN ["ln", "-vs", "/usr/share/icingaweb2/bin/icingacli", "/usr/local/bin/"]
|
RUN ["ln", "-vs", "/usr/share/icingaweb2/bin/icingacli", "/usr/local/bin/"]
|
||||||
RUN ["icingacli", "setup", "config", "webserver", "apache", "--path=/", "--file=/etc/apache2/conf-enabled/icingaweb2.conf"]
|
RUN ["icingacli", "setup", "config", "webserver", "apache", "--path=/", "--file=/etc/apache2/conf-enabled/icingaweb2.conf"]
|
||||||
|
RUN echo 'SetEnvIf X-REMOTE-USER "(.*)" REMOTE_USER=$0' > /etc/apache2/conf-enabled/allow-remote-user.conf
|
||||||
|
|
||||||
USER www-data
|
USER www-data
|
||||||
ENV ICINGAWEB_OFFICIAL_DOCKER_IMAGE 1
|
ENV ICINGAWEB_OFFICIAL_DOCKER_IMAGE 1
|
||||||
|
@ -77,6 +77,10 @@ option = value
|
|||||||
Consult the [Icinga Web 2 configuration documentation]
|
Consult the [Icinga Web 2 configuration documentation]
|
||||||
on which .ini files there are.
|
on which .ini files there are.
|
||||||
|
|
||||||
|
### External authentication
|
||||||
|
|
||||||
|
When using `icingaweb.authentication.autologin.backend: external`, the Username needs to be passed in the `X-Remote-User` header.
|
||||||
|
|
||||||
## Build it yourself
|
## Build it yourself
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
x
Reference in New Issue
Block a user