authelia - various fixes

This commit is contained in:
bunkerity 2021-06-29 17:14:57 +02:00
parent cec47f3a75
commit a385183d88
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
4 changed files with 12 additions and 2 deletions

View File

@ -9,7 +9,7 @@ location {{ url }} {% raw %}{{% endraw %}
etag off;
proxy_pass {{ host }};
{% if USE_AUTHELIA == "yes" %}
include {{ NGINX_PREFIX }}authelia-upstream.conf;
include {{ NGINX_PREFIX }}authelia-auth-request.conf;
{% endif %}
include {{ NGINX_PREFIX }}reverse-proxy-headers.conf;
{% if ws == "yes" %}

View File

@ -54,7 +54,7 @@ services:
- app1.example.com_REMOTE_PHP=myapp1
- app1.example.com_REMOTE_PHP_PATH=/app
- app2.example.com_SERVE_FILES=no
- app2.example.com_USE_REVERSE_PROXY=myapp2
- app2.example.com_USE_REVERSE_PROXY=yes
- app2.example.com_REVERSE_PROXY_URL=/
- app2.example.com_REVERSE_PROXY_HOST=http://myapp2

View File

@ -0,0 +1,10 @@
<?php
echo "Welcome to app2 !<br><br>";
echo "REMOTE_USER = " . $_SERVER['HTTP_REMOTE_USER'] . "<br>";
echo "REMOTE_GROUPS = " . $_SERVER['HTTP_REMOTE_GROUPS'] . "<br>";
echo "REMOTE_NAME = " . $_SERVER['HTTP_REMOTE_NAME'] . "<br>";
echo "REMOTE_EMAIL = " . $_SERVER['HTTP_REMOTE_EMAIL'] . "<br>";
?>