fickit: include config to forward auth to CRI

This commit is contained in:
nemunaire 2019-01-17 07:53:32 +01:00
parent 5d644fa366
commit 7cbd7b6eeb
3 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,3 @@
auth_request /auth;
set $team "$remote_user";

View File

@ -29,6 +29,14 @@ server {
location = / {
include fic-auth.conf;
}
location = /auth {
internal;
proxy_pass https://163.5.55.58/remote.php/webdav/;
proxy_pass_request_body off;
proxy_set_header Host "owncloud.srs.epita.fr";
proxy_set_header Content-Length "";
proxy_set_header X-Original-URI $request_uri;
}
location = /index.html {
include fic-auth.conf;
}

View File

@ -235,7 +235,7 @@ files:
source: configs/nginx-demo.conf
mode: "0400"
- path: etc/nginx/fic-auth.conf
source: configs/fic-auth-demo.conf
source: configs/fic-auth-fwd.conf
mode: "0400"
- path: www/htdocs-frontend