You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/25 06:43:20 UTC

[GitHub] [apisix] starsz opened a new issue #3669: feat: support environment variable to override the config

starsz opened a new issue #3669:
URL: https://github.com/apache/apisix/issues/3669


   # Feature request
   
   ## Please describe your feature
   
   We can support the environment variable to override the config.
   In some situations use the environment variable would be more convenient than config.yaml.
   
   ## Describe the solution you'd like
   
   1. read all environment variable
   2. if the variable is started with `APISIX_` then add it to the table
   3. merge the conf from YAML and environment, the environment's priority is higher than YAML.
   4. use the conf that merged to do the next things.
   
   ## Additional context
   
   We need to print the log that we used environment. 
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] starsz closed issue #3669: feat: support environment variable to override the config

Posted by GitBox <gi...@apache.org>.
starsz closed issue #3669:
URL: https://github.com/apache/apisix/issues/3669


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] starsz commented on issue #3669: feat: support environment variable to override the config

Posted by GitBox <gi...@apache.org>.
starsz commented on issue #3669:
URL: https://github.com/apache/apisix/issues/3669#issuecomment-785676107


   Now the conf.yaml support the environment variable.
   
   https://github.com/apache/apisix/blob/de9ea132845202bd79624ddb780096882d50288c/conf/config.yaml#L24
   
   So I think I can close this issue.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org