Added support for code-server logout button

Newly added logout button in menu "File --> Logout" only reloads the page because the cookies are somehow not getting deleted. Adding the /login/ location with these parameters solves this problem.
This commit is contained in:
Danny 2021-04-04 17:27:30 +02:00 committed by GitHub
commit a2d4de3db5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,4 +37,28 @@ server {
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location /login/ {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable the next two lines for ldap auth
#auth_request /auth;
#error_page 401 =200 /ldaplogin;
# enable for Authelia
#include /config/nginx/authelia-location.conf;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_app code-server;
set $upstream_port 8443;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_hide_header Set-Cookie;
proxy_ignore_headers Set-Cookie;
proxy_set_header Cookie "";
}
}