Files that configure the initial settings for some computer programs.
Questions tagged [configuration-files]
2246 questions
11
votes
3 answers
Controlling a project with Maven and Spring: How to set Spring config file using Maven profiles?
I am trying to configure a Spring configuration file with database information based on whether a certain Maven profile is active. I've seen pieces of answers to this but I'm having trouble putting it all together.
I have a Maven profile like…

ksnortum
- 2,809
- 4
- 27
- 36
10
votes
4 answers
Where is the varnish configuration file?
I have just installed varnish and its ready to serve web pages.
Problem is that we are hitting open files limit.
We have already set ulimit to varnish user.
We want to find a file where we can write this configuration:
# Maximum number of open…

khizar ansari
- 1,476
- 2
- 18
- 29
10
votes
3 answers
How to programmatically modify assemblyBinding in app.config?
I am trying to change the bindingRedirect element at install time by using the XmlDocument class and modifying the value directly. Here is what my app.config looks like:

esac
- 24,099
- 38
- 122
- 179
10
votes
2 answers
How to recognize a configuration file's syntax and its equivalent Markdown language identifier?
Introduction
When configuring software packages, you encounter a variety of configuration files with a variety of different syntaxes used.
In addition to .json, .xml, .yml and .properties, below are a few examples of common syntaxes I am unable to…

Snackoverflow
- 5,332
- 7
- 39
- 69
10
votes
2 answers
How to set environment variables from appsettings.json for .net core console app?
I'm working with a C# class that reads from appsettings using
Environment.GetEnvironmentVariable("setting")
I want to make another console program (.net core 3.0) that reads settings from appsettings.json and loads them into environment…

Benny
- 186
- 1
- 1
- 11
10
votes
6 answers
Config file parser in Fortran
I would like to be able to use a simple configuration file to pass parameters to my program. This configuration file would consist of a list of arguments with values that can be of different types (integer, real, logical, list of words, etc.).
Here…

remek
- 933
- 1
- 10
- 20
10
votes
1 answer
Which file is System.Configuration.ConfigurationManager.AppSettings using?
I want to know which *.config file the ConfigurationManager is using. How can I figure that out?
For instance, you could be changing working directories and execute libraries from various paths. I'd love to have a way to display something like…

Larsenal
- 49,878
- 43
- 152
- 220
10
votes
2 answers
boost::program_options - how to handle multiple sections with the same name in INI file
In a config like below; is there a way to handle individual sections.
I am looking for a way to validate individual "server" sections below, in a reliable manner.
[basic]
number_of_servers=3
[server]
ip=10.20.30.40
password=sdfslkhf …

ϹοδεMεδιϲ
- 2,790
- 3
- 33
- 54
10
votes
7 answers
Storing application settings in C#
What is the best practice to store application settings (such as user name and password, database location ...) in C# ?
Hint: I am new to .net and C#

Radi
- 6,548
- 18
- 63
- 91
10
votes
1 answer
Read part of appSettings from an external configuration file
I'd like to read a part of the appSettings of my console application from an external configuration file named, say, secrets.config, while the rest of it I would like to read from the app.config.
Presently, I have this set up but it seems like it…

Water Cooler v2
- 32,724
- 54
- 166
- 336
10
votes
3 answers
Config files vs database tables
The scenario I am particularly interested is multiple servers having daemons that run on certain configuration parameters. (since, this is a learning exercise. i welcome any thought beyond this particular case)
The question is, where should the…

neal aise
- 885
- 5
- 14
10
votes
3 answers
Cppcheck GUI: Excluding a file or folder from checking
I am using Cppcheck GUI to scan my projects (new in Cppcheck, just starded to use it) and want to exclude some sub folders when I am scanning my project.
How to exclude some sub folder when scanning project folder with cppcheck GUI?
I have watched…

T M
- 3,195
- 2
- 31
- 52
10
votes
2 answers
Difference between fs.defaultFS and fs.default.name
I know both these properties are related to namenode. But what is the actual difference between them?

pramesh
- 1,914
- 1
- 19
- 30
10
votes
1 answer
Something like Typesafe Config for NodeJS
I have a nodejs application that will take a JSON configuration file.
The JSON file will have some ${} and #{} tags that will be used to build up a dynamic context by loading a template configuration and populating the tags. HOCON may also end up…

Ruairi O'Brien
- 1,209
- 5
- 18
- 33
10
votes
4 answers
How to edit and save custom config files in Laravel?
I am creating simple web application in Laravel 4. I have backend for managing applications content. As a part of backend i want to have UI to manage applications settings. I want my configuration variables to be stored in file [FOLDER:…

scorpion909
- 115
- 1
- 2
- 8