This commit is contained in:
chendelin1982 2022-11-02 13:51:49 +08:00
parent aa52fd9034
commit 6af05e31b3
6 changed files with 7 additions and 90 deletions

View file

@ -24,11 +24,11 @@
</head>
<body>
<div>
<button type="button" onclick="getInfo()">查看账户信息</button>
<button type="button" onclick="clearInfo()">隐藏账户信息</button>
<button type="button" onclick="getInfo()">查看账号密码</button>
<button type="button" onclick="clearInfo()">隐藏账号密码</button>
<div id="sysinfo">
</div>
</div>
</body>
</html>
</html>

View file

@ -3,7 +3,7 @@
"tools": {
"sysinfo": {
"label": "账号信息",
"label": "初始账号",
"path": "index.html",
"order": 999
}

View file

@ -8,6 +8,6 @@
</head>
<body>
<iframe src="http://47.92.175.174:9001" width="100%" height="100%"></iframe>
<iframe src="/nginxproxymanager/" width="100%" height="100%"></iframe>
</body>
</html>
</html>

View file

@ -7,7 +7,7 @@
"tools": {
"index": {
"order": "10",
"label": "域名配置",
"label": "Nginx 代理",
"path": "index.html",
"keywords": [
{

View file

@ -1,83 +0,0 @@
# ------------------------------------------------------------
# 47.92.175.174
# ------------------------------------------------------------
server {
set $forward_scheme http;
set $server "172.17.0.1";
set $port 9099;
listen 80;
listen [::]:80;
server_name 47.92.175.174;
access_log /data/logs/proxy-host-3_access.log proxy;
error_log /data/logs/proxy-host-3_error.log warn;
location /nginx/ {
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://nginxproxymanager:81;
# Required for web sockets to function
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Pass ETag header from Cockpit to clients.
# See: https://github.com/cockpit-project/cockpit/issues/5239
gzip off;
}
location / {
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:9099;
# Required for web sockets to function
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Pass ETag header from Cockpit to clients.
# See: https://github.com/cockpit-project/cockpit/issues/5239
gzip off;
}
location /panel/ {
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:9099;
# Required for web sockets to function
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Pass ETag header from Cockpit to clients.
# See: https://github.com/cockpit-project/cockpit/issues/5239
gzip off;
}
location /phpmyadmin/ {
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://phpmyadmin:80;
rewrite ^/phpmyadmin(/.*)$ $1 break;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}