Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
laclasse
etherpad
Commits
bf7337e0
Commit
bf7337e0
authored
Jan 25, 2021
by
Nelson GONCALVES
Browse files
Remove nginx pad authentication
parent
ce8c3501
Changes
1
Hide whitespace changes
Inline
Side-by-side
nginx/default.conf.tmpl
View file @
bf7337e0
...
...
@@ -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;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment