Questions tagged [configuration]

Configuration is the process of specifying the settings used for a system or application

Configuration is used to customize the behavior of a program. It is commonly done using static configuration files that can be composed in any common text editor, but some applications provide tools (sometimes even with graphical interfaces) to create, modify, and verify the syntax of their configuration files.

Some programs only read their configuration files at startup. Others periodically check the configuration files for changes. Users can instruct some programs to re-read the configuration files and apply the changes to the current process, or indeed to read arbitrary files as a configuration file.

18012 questions
9
votes
3 answers

C#: manage Multiple App.config files

I am facing a problem. I have a dll which is interacting with a webservice and it saves its endpoint configuration in its app.config file. I want to use this dll from my host application. The host application has its own config file. I have to merge…
Mohsan
  • 2,483
  • 6
  • 47
  • 62
9
votes
3 answers

Typesafe Config Environment Variables

Attempting to use ${HOSTNAME} in a config file does not work! According to the documentation, config files should resolve environment variables as mentioned in the docs: substitutions fall back to environment variables if they don't resolve in the…
tysonjh
  • 1,329
  • 1
  • 12
  • 27
9
votes
2 answers

Can I put comments in between or after multiline properties in a Java Properties file?

I've got a properties configuration file with properties that have many values separated by commas. I want to put comments next to some of them, but it seems that this is not possible? I want to be able to do something like this: property:…
B Johnson
  • 2,408
  • 3
  • 20
  • 32
9
votes
2 answers

Priority between properties in HibernateJPAVendorAdapter and JPAProperty

I have the following configuration in an application Spring + JPA + Hibernate, using packagesToScan to avoid having file persistence.xml.
Alejandro Cuervo
  • 535
  • 1
  • 5
  • 16
9
votes
1 answer

Nginx: can I use $server_name when specifying access log location?

I want to write a config file for an nginx virtual host that looks like this: server { listen 80; server_name www.my-domain-name.com; access_log /home/me/sites/$server_name/logs/access.log; error_log …
hwjp
  • 15,359
  • 7
  • 71
  • 70
9
votes
4 answers

Putting configuration information in a DLL

In my project I have functionality that is being used as a web application and as a console application (to be started from the task scheduler). To do that I put the common code in a DLL that is being used by both the web application and the console…
jan.vdbergh
  • 2,129
  • 2
  • 20
  • 27
9
votes
1 answer

Setting up Cloud9 SSL App with Node JS

I've been playing around with the Cloud9 IDE and am having a great time with it. However, I'm trying to setup a simple https server with node js and I can't seem to get it to work. When I run the page, Cloud9 says 'Running Node Process' but when I…
Greg
  • 205
  • 3
  • 7
9
votes
1 answer

Android application configuration

Where should I store my Android application's configuration settings? Coming from the .NET world I was expecting something like a .config file. Do I create a file under res/values, and use that?
Justin R.
  • 23,435
  • 23
  • 108
  • 157
9
votes
1 answer

Set up DHCP server IP for Vagrant

I am using Vagrant 1.1.2 on Mac OS X 10.7.5 I am running into an issue with the default networking setup. The network seems to be configured to use a DHCP server providing IPs from 10.0.2.? network, with the gateway being set to 10.0.2.2 Sadly, in…
Roman Zenka
  • 3,514
  • 3
  • 31
  • 36
9
votes
1 answer

Play framework 2.0. Use alternative application.conf in test

my Play using mysql in production. But I am trying to use memory for testing. I created 2 conf file, 1 is application.conf, the other is application.test.conf (in the same directory). I tried to do play -Dconfig.file=conf/application.test.conf…
hook38
  • 3,899
  • 4
  • 32
  • 52
9
votes
1 answer

Absolute path for error_page in nginx?

Is there a way I can set an absolute path for nginx error_pages? Not absolute as in http://, but absolute as in /usr/var/nginx/errors/500.html.
9
votes
2 answers

Why config files should't be changed line-by-line with Chef / Puppet?

Why is changing lines in configuration file considered an anti-pattern in Chef or Puppet? It's something like bad habit, as I understood. I assume that this file-editing is done in some idempotent way and with advanced tools (augeas for…
Michael Field
  • 2,092
  • 1
  • 17
  • 12
9
votes
1 answer

reference ${user.home} in Spring Java configuration

In xml configuration I can do the following: In java configuration I…
shmish111
  • 3,697
  • 5
  • 30
  • 52
9
votes
1 answer

WCF IIS hosted service multiple Service Contracts implemented by a single service - how do I share uri between endpoints via config

I have a set of Service Contracts which split up my service interface into chunks of related functionality. I am currently implementing all contracts using a single service class (may want to split these later but for now the single service class…
Simon Fox
  • 10,409
  • 7
  • 60
  • 81
9
votes
5 answers

A configuration file that can be read by python and shell

I have python scripts and shell scripts in the same folder which both need configuration. I currently have a config.py for my python scripts but I was wondering if it is possible to have a single configuration file which can be easily read by both…
Jimmy
  • 12,087
  • 28
  • 102
  • 192