Update initproxy.conf
由于Portainer登录验证方式改变,修改Portainer代理方式
This commit is contained in:
parent
923f8bef93
commit
a8e36ccab5
1 changed files with 5 additions and 5 deletions
|
@ -39,11 +39,11 @@ server {
|
|||
if ($request_method = OPTIONS) {
|
||||
return 204;
|
||||
}
|
||||
set $quot_tmp "\"";
|
||||
set $portainer_jwt "${quot_tmp}${cookie_portainerJWT}${quot_tmp}";
|
||||
sub_filter '</head>' "<script>($portainer_jwt)?window.localStorage.setItem('portainer.JWT', '$portainer_jwt'):null;</script></head>";
|
||||
sub_filter_once on;
|
||||
sub_filter_types *;
|
||||
# set $quot_tmp "\"";
|
||||
# set $portainer_jwt "${quot_tmp}${cookie_portainerJWT}${quot_tmp}";
|
||||
# sub_filter '</head>' "<script>($portainer_jwt)?window.localStorage.setItem('portainer.JWT', '$portainer_jwt'):null;</script></head>";
|
||||
# sub_filter_once on;
|
||||
# sub_filter_types *;
|
||||
}
|
||||
|
||||
# proxy for Nginx proxy Manager
|
||||
|
|
Loading…
Add table
Reference in a new issue