Skip to content

Commit d3b9b55

Browse files
authored
Update tpu.conf
1 parent 123deb8 commit d3b9b55

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tpu.conf

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ set $token $cookie_token;
77

88
location /tpu_callback {
99
if ($args ~* "code=(?<token>[^&]+)") {
10+
1011
add_header Set-Cookie "token=$token";
1112
}
12-
return 302 /;
13+
set $redirect_path $arg_redirect_path;
14+
if ($redirect_path = "") {
15+
set $redirect_path "/";
16+
}
17+
return 302 $redirect_path;
1318
}
1419

1520
location /_tpu_get_user {

0 commit comments

Comments
 (0)