mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Update initproxy.conf
This commit is contained in:
parent
40f24969c7
commit
d9804a1bfe
1 changed files with 25 additions and 2 deletions
|
@ -43,16 +43,39 @@ server {
|
|||
proxy_http_version 1.1;
|
||||
}
|
||||
|
||||
|
||||
location /nginxproxymanager/ {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Scheme $scheme;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_pass http://172.17.0.1:9092/;
|
||||
proxy_pass http://websoft9-nginxproxymanager:81;
|
||||
rewrite ^/nginxproxymanager/?(.*)$ /$1 break;
|
||||
proxy_http_version 1.1;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
proxy_set_header Connection $http_connection;
|
||||
proxy_http_version 1.1;
|
||||
proxy_cache_bypass $http_secret_header;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
add_header Pragma "no-cache";
|
||||
add_header Cache-Control "no-cache";
|
||||
# source changes
|
||||
sub_filter 'href="/' 'href="/nginxproxymanager/';
|
||||
sub_filter 'src="/' 'src="/nginxproxymanager/';
|
||||
sub_filter '/api' '/nginxproxymanager/api';
|
||||
sub_filter '/assets' '/nginxproxymanager/assets';
|
||||
sub_filter '/js/' '/nginxproxymanager/js/';
|
||||
# script changes
|
||||
sub_filter 'r.p="/' 'r.p="/nginxproxymanager/';
|
||||
sub_filter '"/login' '"/nginxproxymanager/login';
|
||||
sub_filter 'case"/logout"' 'case"/nginxproxymanager/logout"';
|
||||
sub_filter 'window.location="/"' 'window.location="/nginxproxymanager/"';
|
||||
sub_filter 'history.start({pushState:!0})' 'history.start({pushState:!0,root: "/nginxproxymanager/"})';
|
||||
sub_filter 'i.history.navigate(e.' 'i.history.navigate(e.replace("/nginxproxymanager","").';
|
||||
sub_filter_types text/css text/javascript application/javascript;
|
||||
sub_filter_once off;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
|
Loading…
Reference in a new issue