-
Notifications
You must be signed in to change notification settings - Fork 773
[feature request] provide a more flexible way to pass parameter from dfdaemon to dfget #687
Comments
Maybe we can add a string field for dfdaemon such as In addition, we can set different params for different proxy regex by config file
|
The |
Do we need that key-value map? What about just using k-v pair like IMO if we want to use config files to pass variables, is it confusing to still pass variables from dfdaemon flags? Maybe we can add a field of |
I agree with that. |
Good suggestion. A globalParams is necessary and I think it's better to temporarily reserve the way to pass parameters via flag. WDYT? So let's do these things next:
|
agree |
@yeya24 Would you like to do that? 😄 |
Sure. I'd like to work on it. |
I have a question about how to deal with the config files between dfdaemon and dfget. If we set some dfgetParams, how we deal with dfget.yml? |
The properties of lower | 1. `globalParams` in `dfdaemon` config file
| 2. `dfdaemon` flags, they will override the `globalParams`
higher | 3. `dfgetParams` of every `proxy` property in `dfdaemon` config file |
I thinks this feature has already been implemented. I will close it, if not please reopen again. |
Why you need it?
Currently we just directly pass the parameters from dfdaemon to dfget. However these flags are global and sometimes different proxies may need different parameters such as timeout or urlfilters.
We should provide a more flexible way to construct dfget parameters in dfdaemon.
How it could be?
Other related information
Related:
dragonflyoss/dragonfly#670
dragonflyoss/dragonfly#686
The text was updated successfully, but these errors were encountered: