Files that configure the initial settings for some computer programs.
Questions tagged [configuration-files]
2246 questions
712
votes
30 answers
How to store Node.js deployment settings/configuration files?
I have been working on a few Node apps, and I've been looking for a good pattern of storing deployment-related settings. In the Django world (where I come from), the common practise would be to have a settings.py file containing the standard…

mikl
- 23,749
- 20
- 68
- 89
652
votes
14 answers
How can I save application settings in a Windows Forms application?
What I want to achieve is very simple: I have a Windows Forms (.NET 3.5) application that uses a path for reading information. This path can be modified by the user, by using the options form I provide.
Now, I want to save the path value to a file…

Fueled
- 8,776
- 9
- 29
- 31
515
votes
5 answers
Is it .yaml or .yml?
According to yaml.org, the official file extension is .yaml.
Quote:
Is there an official extension for YAML files?
Please use ".yaml" when possible.
However there seems to be a disagreement on the internet on which extension to use. If you look…

spuder
- 17,437
- 19
- 87
- 153
448
votes
4 answers
How to comment in Vim's config files: ".vimrc"?
How do I add a comment in Vim's configuration files, like .vimrc?

alexchenco
- 53,565
- 76
- 241
- 413
333
votes
13 answers
How to handle configuration in Go
What is the preferred way to handle configuration parameters for a Go program (the kind of stuff one might use properties files or ini files for, in other contexts)?

theglauber
- 28,367
- 7
- 29
- 47
182
votes
9 answers
How can I reference a file for variables using Bash?
I want to call a settings file for a variable. How can I do this in Bash?
The settings file will define the variables (for example, CONFIG.FILE):
production="liveschool_joe"
playschool="playschool_joe"
And the script will use these variables in…

edumike
- 3,149
- 7
- 27
- 33
181
votes
4 answers
How to locate the vimrc file used by Vim?
Is there a command in the Vim editor to find the .vimrc file location?

niting112
- 2,498
- 2
- 16
- 18
178
votes
5 answers
How to implement a ConfigurationSection with a ConfigurationElementCollection
I am trying to implement a custom configuration section in a project and I keep running up against exceptions that I do not understand. I am hoping someone can fill in the blanks here.
I have App.config that looks like this:

Chris Holmes
- 11,444
- 12
- 50
- 64
167
votes
3 answers
What's in an Eclipse .classpath/.project file?
We recently had an issue with an Eclipse project for one of our team members. Tomcat was not deploying JARs of the application.
We eventually noticed the .classpath Eclipse file was not the same as for the team members where the project was OK. We…

totalEclipse
- 1,671
- 2
- 11
- 3
160
votes
6 answers
How do I globally configure RSpec to keep the '--color' and '--format specdoc' options turned on
How do I set global configuration for RSpec in Ubuntu.
Specifically so, --color and --format specdoc stay turned on, across all my projects (ie every time I run rspec anywhere).

Evolve
- 8,939
- 12
- 51
- 63
151
votes
9 answers
Finding out the name of the original repository you cloned from in Git
When you do your first clone using the syntax
git clone username@server:gitRepo.git
Is it possible using your local repository to find the name of that initial clone?
(So in the above example, find gitRepo.git.)

Toby
- 8,483
- 13
- 45
- 68
147
votes
2 answers
How do I find out which settings.xml file maven is using
I recently changed my password and have to change my maven settings.xml file to reflect that. However, no matter what I do in the settings.xml file, the changed password just won't get picked up. Out of desperation, I ran maven with the -s switch…

RAY
- 6,810
- 6
- 40
- 67
135
votes
12 answers
Parse config files, environment, and command-line arguments, to get a single collection of options
Python's standard library has modules for configuration file parsing (configparser), environment variable reading (os.environ), and command-line argument parsing (argparse). I want to write a program that does all those, and also:
Has a cascade of…

bignose
- 30,281
- 14
- 77
- 110
133
votes
9 answers
Kubernetes equivalent of env-file in Docker
Background:
Currently we're using Docker and Docker Compose for our services. We have externalized the configuration for different environments into files that define environment variables read by the application. For example a prod.env…

Johan
- 37,479
- 32
- 149
- 237
127
votes
15 answers
Creating a config file in PHP
I want to create a config file for my PHP project, but I'm not sure what the best way to do this is.
I have 3 ideas so far.
1-Use Variable
$config['hostname'] = "localhost";
$config['dbuser'] = "dbuser";
$config['dbpassword'] =…

Ali Akbar Azizi
- 3,272
- 3
- 25
- 44