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/06/24 07:48:18 UTC

[GitHub] [apisix] xuchmao opened a new issue #4475: request help: support use environment properties to overwrite properties in configuration file

xuchmao opened a new issue #4475:
URL: https://github.com/apache/apisix/issues/4475


   ### Issue description
   Need to support use environment properties to overwrite properties in configuration file, just like what it is Spring Framework.
   
   For example, set ectd.prefix="/foo" as  environment arg,  ectd.prefix in config.yaml is "apisix", finally value of property  ectd.prefix is "foo" when apisix run.
   
   By the way, priority of config-${APISIX_PROFILE}.yaml > config.yaml will be much better.
   
   Thanks ! 
   
   ### Environment
   * apisix 2.6
   


-- 
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] xuchmao commented on issue #4475: request help: use environment properties to overwrite properties in configuration file

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


   Thanks, I will try it.


-- 
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] xuchmao closed issue #4475: request help: use environment properties to overwrite properties in configuration file

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


   


-- 
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] tzssangglass commented on issue #4475: request help: use environment properties to overwrite properties in configuration file

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


   reading environment variables in the configuration file is now supported, see https://github.com/apache/apisix/blob/75376e3162efa3d38ee113a8ee5e6d7435e7c392/conf/config.yaml#L24-L28.
   
   and environment properties is now supported, see  https://github.com/apache/apisix/blob/master/docs/en/latest/profile.md


-- 
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