Fix IP-API

This commit is contained in:
卖女孩的小火柴 2023-07-03 10:22:05 +00:00
parent 99ae99b9f5
commit ab75e73d33
4 changed files with 8 additions and 6 deletions

View File

@ -7,7 +7,7 @@ To take a simple and very common example, the service provider to provide you a
You can also test the exit IP by running the following command in the Agent server: You can also test the exit IP by running the following command in the Agent server:
```shell ```shell
curl api.myip.la curl https://ipapi.co/ip/
curl ip.sb curl ip.sb
curl ip-api.com curl ip-api.com
``` ```
@ -28,7 +28,7 @@ If you still get iptables... etc. errors, then consider simply closing iptables
This issue may also be kernel related, try replacing the official kernel as well. This issue may also be kernel related, try replacing the official kernel as well.
## Dashboard reboot failed: Invalid hostPort: nz_site_port etc. ## Dashboard reboot failed: Invalid hostPort: nz_site_port etc.
Usually this does not occur, if it does, you can modify the configuration through the installation script. Usually this does not occur, if it does, you can modify the configuration through the installation script or edit `/opt/nezha/dashboard/docker-compose.yaml` directly.
## Wrong Dashboard layout, CSS resources cannot be loaded ## Wrong Dashboard layout, CSS resources cannot be loaded
If the Dashboard page has an incorrect layout, the usual reason is that the CSS file is missing or cannot be loaded. If the Dashboard page has an incorrect layout, the usual reason is that the CSS file is missing or cannot be loaded.

View File

@ -14,7 +14,8 @@ Please make sure your path is `/oauth2/callback`, **all lowercase**.
## Dashboard errors after login ## Dashboard errors after login
### http: named cookie not present ### http: named cookie not present
Clear your browser cookies and log in again, or change your browser. 1. Clear your browser cookies and log in again, or change your browser.
2. Check the callback address to ensure that your callback address is correct and that both **the port and protocol** are correct! The address from which the request is initiated needs to be in the same domain as the callback address, and the port, protocol, and domain name (or IP) all need to be consistent.
### lookup xxx ### lookup xxx
DNS resolution failure, in most cases, is due to iptables-related configuration changes. DNS resolution failure, in most cases, is due to iptables-related configuration changes.

View File

@ -7,7 +7,7 @@
您也可以在 Agent 服务器中运行以下命令测试出口IP: 您也可以在 Agent 服务器中运行以下命令测试出口IP:
```shell ```shell
curl api.myip.la curl https://ipapi.co/ip/
curl ip.sb curl ip.sb
curl ip-api.com curl ip-api.com
``` ```
@ -28,7 +28,7 @@ systemctl status docker
这个问题也可能与内核有关,也可以尝试更换官方内核。 这个问题也可能与内核有关,也可以尝试更换官方内核。
## 面板重启失败Invalid hostPort: nz_site_port 等 ## 面板重启失败Invalid hostPort: nz_site_port 等
通常不会出现这个情况,如出现可以通过安装脚本修改配置。 通常不会出现这个情况,如出现可以通过安装脚本修改配置,或者直接修改 `/opt/nezha/dashboard/docker-compose.yaml`文件
## 面板布局错误、CSS 资源无法被加载 ## 面板布局错误、CSS 资源无法被加载
如果出现 Dashboard 页面布局出现错误,通常的原因是 CSS 文件丢失或无法被加载 如果出现 Dashboard 页面布局出现错误,通常的原因是 CSS 文件丢失或无法被加载

View File

@ -15,7 +15,8 @@
## 登录后面板报错 ## 登录后面板报错
### http: named cookie not present ### http: named cookie not present
清理cookies后重新登录或换个浏览器 1. 清理cookies后重新登录或换个浏览器
2. 检查回调地址,确保您的回调地址正确且**端口与协议**均正确!发起请求的地址需要和回调地址处于同域,端口、协议和域名(或IP)都需要一致。
### lookup xxx ### lookup xxx
容器DNS解析失败多数情况下为修改了iptables相关配置。 容器DNS解析失败多数情况下为修改了iptables相关配置。