EdgeOneDynamicOrigin
Project description
EdgeOne Dynamic Origin
EdgeOne 是腾讯云的边缘安全加速平台。该脚本为其提供动态更新源站组 IP 的功能。 此功能特别适用于那些 IP 地址可能会变化的源站,确保 CDN 始终能够正确地获取最新的内容。比如仅有动态 IPV6 地址的服务器, 也能够长期稳定部署WEB服务,而不必使用 frp / ngork 等内网端口转发工具。
注意,若要使用该脚本,在 EdgeOne 中的加速域名必须使用源站组配置源站。
使用方法
- 必要依赖:
python -m pip install --upgrade pip pip install requests pyyaml
- 重命名
config.example.yaml为config.yaml,并编辑配置项,具体配置项请参考config.example.yaml中的注释。 - 可以执行
python main.py进行测试。 - 对于 windows,可以通过 任务计划程序 将脚本配置为定期执行;对于 linux,可以使用 cron 将脚本配置为定期执行
Windows 任务计划程序配置示例
- 打开任务计划程序。
- 创建一个基本任务。
- 选择触发器(例如,每日)。
- 在操作中选择“启动程序”,并选择 Python 可执行文件和脚本路径。
- 设置脚本的工作目录和参数。
Linux cron 配置示例
- 打开终端。
- 编辑 crontab 文件:
crontab -e - 添加一行来定期执行脚本,例如每小时执行一次:
0 * * * * python /your_path/main.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eodo-0.1.3.tar.gz
(8.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
eodo-0.1.3-py3-none-any.whl
(9.5 kB
view details)
File details
Details for the file eodo-0.1.3.tar.gz.
File metadata
- Download URL: eodo-0.1.3.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38c20d34f57a729c3b7a40f6a8a6d2d23150ce3e28764e87176520e9c0df316f
|
|
| MD5 |
cc527ad8f7fd94e139b88932eca3147f
|
|
| BLAKE2b-256 |
0f411fa1104daeb5e726f2e6e92c115f2c3708ec86cf62ed81a6b05c2ce0cd00
|
File details
Details for the file eodo-0.1.3-py3-none-any.whl.
File metadata
- Download URL: eodo-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d246e722c2a70576f14e1e5be7337a4f26b5b54d31b4a34c231e7d302813db35
|
|
| MD5 |
519cbd5d8f38f0ceb64de1d0e4692810
|
|
| BLAKE2b-256 |
2e562d2810c94a10105d0154b112c13be223e28cbe6c4c32f7979c85d1575f7c
|