NewFuture / DDNS

:triangular_flag_on_post: 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
https://ddns.newfuture.cc/
MIT License
4.23k stars 650 forks source link

[feature] 支持从环境变量读取配置 #220

Closed shuosiw closed 2 years ago

shuosiw commented 3 years ago

Is your feature request related to a problem? Please describe. 使用 docker 方式运行,还需要准备配置文件挂载到容器内部,稍微麻烦,希望支持读取环境变量配置

Describe the solution you'd like 支持启动时读取环境变量,而不是强制要求 config.json

Describe alternatives you've considered 如上

Additional context

NewFuture commented 3 years ago

嗯,这个feature 确实需要

shuosiw commented 3 years ago

嗯,这个feature 确实需要

可以可以,加油~

shuosiw commented 3 years ago

@NewFuture 我通过配置渲染的方式临时支持了从环境变量进行渲染:https://github.com/shuosiw/NFddns

并且提供了 unraid 的模板,在 unraid 上使用会变得非常简单:

image

image

NewFuture commented 3 years ago

269 这个PR支持从环境变量读取配置,可以用这个分支体验下