How to store a secret config.php in openshift outside of a git repository?
I want to deploy a php app with a dockerfile from a git repository on openshift. The php app includes a config.php file with passwords. I can't put (secret) config.php in the (public) git repository....
View ArticleHow to loop through a config file to conditionally generate files in Node
Imagine that you have a config file like this one{ environments: [ { "name": "DEV", "host": "https://localhost", "port": "8080" }, { "name": "PRE", "host": "whatever", "port": "whatever" } ] } how...
View ArticleWebpack config to include inline images
So I want to include inline images in html (with < img > tag), but browser doesn't load the image that I listed. I wrote a rule in webpack config file but it didn't change anything:{ exclude:...
View ArticleIs there an standard format/module for conditional/contextual config files?
When we work with config files, we query config about option value and get result, like:MyOption = settings.MY_OPTION And always getting same value specified in config.But some software (Apache) has...
View ArticleMerging appsettings with environment variables in .NET Core
I am running a .NET Core app in Docker (in Kubernetes), passing environment variables to the Docker container and using them in my app.In my .NET Core app I have the following C# class:public class...
View ArticleConfigure Camel routes from outside JAR in Camel-Spring-Boot setup
My goal is to have a simple way of running Camel with a few routes in a dynamic fashion. Ideally, I'd like to run something like thisjava -jar camel.jar routes.xmlwhich allows adjusting the routes in...
View ArticleValid format of /vue.config.js in vue/cli
I neeed some config file in @vue/cli 4.0.5 app and I created manually /vue.config.js with lines :export const settingsTestriorityLabels = [ { key: 0, label: 'No00000' }, { key: 1, label: 'Lowwwwwww' }...
View ArticleHow to use AWS Amplify env vars in gatsby-config.js?
I am building an app with GatsbyJS. I am using environment variables in my gatsby-config.js. GatsbyJS app builds fine locally, by using .env.* files. However, when building from AWS Amplify it...
View ArticleMost Pythonic way to provide global configuration variables in config.py?
In my endless quest in over-complicating simple stuff, I am researching the most 'Pythonic' way to provide global configuration variables inside the typical 'config.py' found in Python egg packages....
View ArticleGet environment value in controller
In my .env file I have the following:IMAP_HOSTNAME_TEST=imap.gmail.com IMAP_USERNAME_TEST=myemail@gmail.com IMAP_PASSWORD_TEST=mypw Now I would like to use them in my controller. I've tried this but...
View ArticleCan Filebeat use multiple config files?
I have several applications running on a single server. I'd like to use filebeat to ship the logs of each of them to logstash. However, for the sake of configuration management, I'd like to be able to...
View ArticleHeroku ignoring config vars and database in app.json for a Node.js app
I am trying to set a config/environment var in config file app.json for a Node.js app deployed to Heroku, but the var is undefined when I try to access it in my Node.js code. I have managed to find a...
View ArticlePython use .json as config file with class instances
I'm creating an application that stores it's config in a dictionary. I know I can write this to a JSON file and read this every time the app starts. But the problem is that this dictionary also...
View ArticleImplement docker mongodb replica set config settings inside .yml file
I have set a MongoDB replica set which is running properly. But I want to run the config settings inside the .yml, and not initiating inside a replica set node.by config settings I mean:1.config = {...
View ArticleBest practice for having user-defined paths that the library potentially needs
I am currently writing a library that can deal with a specific dataset, but I do not have the right to share this dataset. However, if the user manage to get access to the dataset (by contacting the...
View ArticleHow to handle spaces in Boost::program_options config files for custom option...
This question concerns the parsing of values in a Boost::program_options configuration file.I have a simple custom data structure:struct Vector { double x, y, z; }; I have an istream deserialiser for...
View ArticleHow to set dynamic values with Kubernetes yaml file
For example, a deployment yaml file:apiVersion: extensions/v1beta1 kind: Deployment metadata: name: guestbook spec: replicas: 2 template: metadata: labels: app: guestbook spec: container: - name:...
View ArticleIonic 4 IOS Socket.io how to get config dynamically
I'm programming an application with ionic and socket IO, in the app.module.ts the import of the socket needs a config for the url and options. This is hardcoded and i would like have this config...
View ArticleRunning vim inside tmux. How do I get shift and the up/down arrows to work as...
When I use vim on a remote machine I can use the following keys:Up arrow = up one lineDown arrow = down one lineRight shift + up arrow = up one pageRight shift + down arrow = down one page.I'm really...
View ArticleRunning apache2 locally without including full path
I Installed apache server on ubuntu to test my application locally. The applications hosted on that server are all in the html folder located at the following path /var/www/htmlWhen I write localhost,...
View Article