mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Merge pull request #286 from Websoft9/zhaojing1987-patch-1
Update initproxy.conf
This commit is contained in:
commit
d1e9979c7b
1 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ server {
|
|||
rewrite ^/locales/(.*) /portainer/locales/$1 break;
|
||||
}
|
||||
|
||||
location /portainer/ {
|
||||
location /portainer/ {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Scheme $scheme;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
@ -62,7 +62,7 @@ server {
|
|||
if ($request_method = OPTIONS) {
|
||||
return 204;
|
||||
}
|
||||
sub_filter '</head>' "<script>var token='$arg_Token';(token)?window.localStorage.setItem('nginx-proxy-manager-tokens', '[{\"t\":\"$arg_Token\",\"n\":\"$arg_Name\"}]'):null;</script></head>";
|
||||
sub_filter '</head>' "<script>var tokens='$cookie_nginx_tokens';(tokens)?window.localStorage.setItem('nginx-proxy-manager-tokens', '[{\"t\":\"$cookie_nginx_tokens\",\"n\":\"$cookie_nginx_nikeName\"}]'):null;</script></head>";
|
||||
# source changes
|
||||
sub_filter 'href="/' 'href="/nginxproxymanager/';
|
||||
sub_filter 'src="/' 'src="/nginxproxymanager/';
|
||||
|
|
Loading…
Reference in a new issue