Quantcast
Channel: Active questions tagged config - Stack Overflow
Browsing all 5049 articles
Browse latest View live
↧

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 Article


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


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

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

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


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

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

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


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


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

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

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

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


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

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


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

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


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

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

Image may be NSFW.
Clik here to view.

Running 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
Browsing all 5049 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>