This commit is contained in:
孙小云 2026-02-03 16:34:41 +08:00
parent 7b90688164
commit 6c175a7008
1 changed files with 54 additions and 0 deletions

View File

@ -782,6 +782,9 @@ class DeploymentServer:
"""根路径 - 显示操作说明""" """根路径 - 显示操作说明"""
projects = self.monitor.get_all_projects() projects = self.monitor.get_all_projects()
# 获取当前访问的主机IP从请求头中获取
host_ip = request.host.split(':')[0] # 去掉端口号只保留IP
html = ''' html = '''
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@ -861,6 +864,57 @@ class DeploymentServer:
<p><strong>示例</strong><code>http://IP:9999/tuoheng-device</code> 触发 tuoheng-device 项目部署</p> <p><strong>示例</strong><code>http://IP:9999/tuoheng-device</code> 触发 tuoheng-device 项目部署</p>
<p><strong>查看日志</strong><a href="/logs" style="color: #1976d2; font-weight: bold;">点击这里查看部署日志</a> | <a href="/containers" style="color: #1976d2; font-weight: bold;">查看容器日志</a></p> <p><strong>查看日志</strong><a href="/logs" style="color: #1976d2; font-weight: bold;">点击这里查看部署日志</a> | <a href="/containers" style="color: #1976d2; font-weight: bold;">查看容器日志</a></p>
</div> </div>
<h2>🌐 服务访问入口</h2>
<table>
<thead>
<tr>
<th>服务名称</th>
<th>访问地址</th>
<th>默认用户名</th>
<th>默认密码</th>
</tr>
</thead>
<tbody>
<tr>
<td>航运服务 (HYF)</td>
<td><a href="http://{host_ip}:9988" target="_blank" class="deploy-link">http://{host_ip}:9988</a></td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>核心服务 (HXF)</td>
<td><a href="http://{host_ip}:9898" target="_blank" class="deploy-link">http://{host_ip}:9898</a></td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>视频监控 (WVP)</td>
<td><a href="http://{host_ip}:28181" target="_blank" class="deploy-link">http://{host_ip}:28181</a></td>
<td><code>admin</code></td>
<td><code>admin</code></td>
</tr>
<tr>
<td>管理后台 (Nginx)</td>
<td><a href="http://{host_ip}:8899" target="_blank" class="deploy-link">http://{host_ip}:8899</a></td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<td>对象存储 (MinIO)</td>
<td><a href="http://{host_ip}:9001" target="_blank" class="deploy-link">http://{host_ip}:9001</a></td>
<td><code>minioadmin</code></td>
<td><code>minioadmin</code></td>
</tr>
<tr>
<td>物联网平台 (ThingsBoard)</td>
<td><a href="http://{host_ip}:28080" target="_blank" class="deploy-link">http://{host_ip}:28080</a></td>
<td><code>tenant@thingsboard.org</code></td>
<td><code>tenant</code></td>
</tr>
</tbody>
</table>
<h2>📦 可部署项目列表</h2> <h2>📦 可部署项目列表</h2>
<table> <table>
<thead> <thead>