fickit: include config to forward auth to CRI
This commit is contained in:
parent
5d644fa366
commit
7cbd7b6eeb
3
configs/fic-auth-fwd.conf
Normal file
3
configs/fic-auth-fwd.conf
Normal file
@ -0,0 +1,3 @@
|
||||
auth_request /auth;
|
||||
|
||||
set $team "$remote_user";
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user