Commit bf7337e0 authored by Nelson GONCALVES's avatar Nelson GONCALVES
Browse files

Remove nginx pad authentication

parent ce8c3501
......@@ -20,36 +20,6 @@ server {
root /usr/share/nginx/html/;
}
location /pads/p {
rewrite /pads/?(.+) /$1 break;
proxy_pass http://localhost:9001/;
proxy_redirect / /pads/;
proxy_buffering off;
auth_request /pads/auth;
auth_request_set $auth_status $upstream_status;
auth_request_set $auth_redirect "$scheme://$host$request_uri";
error_page 401 = /pads/auth_401;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
location = /pads/auth {
internal;
proxy_pass $AUTH_URL;
proxy_pass_request_body off;
proxy_pass_request_headers on;
proxy_set_header Content-Length "";
proxy_set_header X-Original-URI $request_uri;
}
location = /pads/auth_401 {
return 302 "/sso/login?ticket=false&service=$auth_redirect";
}
# Relocate root url
location /pads/ {
rewrite /pads/?(.+) /$1 break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment