Skip to main content

EdgeOneDynamicOrigin

Project description

EdgeOne Dynamic Origin

EdgeOne 是腾讯云的边缘安全加速平台。该脚本为其提供动态更新源站组 IP 的功能。 此功能特别适用于那些 IP 地址可能会变化的源站,确保 CDN 始终能够正确地获取最新的内容。比如仅有动态 IPV6 地址的服务器, 也能够长期稳定部署WEB服务,而不必使用 frp / ngork 等内网端口转发工具。

注意,若要使用该脚本,在 EdgeOne 中的加速域名必须使用源站组配置源站。

使用方法

  1. 必要依赖:
    python -m pip install --upgrade pip
    pip install requests pyyaml
    
  2. 重命名 config.example.yamlconfig.yaml ,并编辑配置项,具体配置项请参考 config.example.yaml 中的注释。
  3. 可以执行 python main.py 进行测试。
  4. 对于 windows,可以通过 任务计划程序 将脚本配置为定期执行;对于 linux,可以使用 cron 将脚本配置为定期执行

Windows 任务计划程序配置示例

  1. 打开任务计划程序。
  2. 创建一个基本任务。
  3. 选择触发器(例如,每日)。
  4. 在操作中选择“启动程序”,并选择 Python 可执行文件和脚本路径。
  5. 设置脚本的工作目录和参数。

Linux cron 配置示例

  1. 打开终端。
  2. 编辑 crontab 文件:
    crontab -e
    
  3. 添加一行来定期执行脚本,例如每小时执行一次:
    0 * * * * python /your_path/main.py
    

Project details


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.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eodo-0.1.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file eodo-0.1.2.tar.gz.

File metadata

  • Download URL: eodo-0.1.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.30

File hashes

Hashes for eodo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1a09a07c4f3e560d76769f44c0891e20a70e282bfe57d2730bbdf5df9bb03f21
MD5 bd602fe9459313fd24eaf7c25d2ae3e0
BLAKE2b-256 94abc42909f5640fc8713c78bb9f141c4a35970ed7d17f5a82babc1db9925f4a

See more details on using hashes here.

File details

Details for the file eodo-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: eodo-0.1.2-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

Hashes for eodo-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f5f2f3091faf07c139b094ef8eb8a1ebe17f6aa1689624e948092889a527ee1a
MD5 3421776c002db4750c2e5aafcaf4c11f
BLAKE2b-256 ab1fac9d3b29b62220753310e2fded81d162c1d7d49dd8e1ed3e62ff7e5ccb91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page