authelia - various fixes
This commit is contained in:
parent
cec47f3a75
commit
a385183d88
|
@ -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" %}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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>";
|
||||
|
||||
?>
|
Loading…
Reference in New Issue