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.1.tar.gz
(7.9 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.1-py3-none-any.whl
(9.2 kB
view details)
File details
Details for the file eodo-0.1.1.tar.gz.
File metadata
- Download URL: eodo-0.1.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b11d329f94e925d0f4fe7ad5784910cb874102d6a975c75fbeea1bcb81445a80
|
|
| MD5 |
247e63e86e444a3564cd093b0ef63045
|
|
| BLAKE2b-256 |
3fe14c8b28a633d1eb96b15be7e8d15ed87f83ac747de4cf61035dea4e07cce6
|
File details
Details for the file eodo-0.1.1-py3-none-any.whl.
File metadata
- Download URL: eodo-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93cbe20ac62f9f4992b5b93da81f69fc9c7a2648620dc4f5fa7f01319c8dc196
|
|
| MD5 |
a2ba2a5fc49a19cdb7e351662501175a
|
|
| BLAKE2b-256 |
bfc294cf6907d2bf6d07298dcae151c79a3550235b0c0db7dc08b2c2d9dfd6f8
|