Questions tagged [config]

Config files configure the initial settings for some computer programs

Configuration files, or config files configure the initial settings for some computer programs. They are used for user applications, server processes and operating system settings. They may be considered a simple database.

6120 questions
2
votes
1 answer

execfile() for configuration - error no such file or directory

I'm trying to use execfile() function to use a file as config file. The file has only a bunch of variables and values. But when I'm trying to use it in my code, it throws IOError: [Errno 2] No such file or directory This is my code: dictionary =…
sidx
  • 640
  • 2
  • 11
  • 28
2
votes
0 answers

When does grails.config.locations get processed in Grails?

I am using grails 1.2.1 and would like to specify external configuration (properties) files for the war file for my application. I understand from documentation that the proper way to do this is to specify the grails.config.locations list in the…
Gene Golovchinsky
  • 6,101
  • 7
  • 53
  • 81
2
votes
1 answer

How to handle config files and default settings when using Composer?

I was wondering what the best practices were for handling configuration files for your scripts when using Composer. To elaborate, if I have a script that has several options or settings I'd usually just add them as variables or constants in a…
Mike Everhart
  • 408
  • 3
  • 10
2
votes
0 answers

is it possible for cssh to use the .ssh config file?

Trying to figure out if it is possible for cssh to resolve the aliases in my ~/.ssh config file so that my /etc/clusters file can then just use the aliases ? Have not been able to get it to work /etc/clusters cluster = alias1 alias2 ~/.ssh/config …
sunny
  • 824
  • 1
  • 14
  • 36
2
votes
1 answer

puppet 3 add manifest directory in config instead file

I'm stuck and can't find any answer in google. At now my master config point to single manifest manifest = $confdir/manifests/cronjob.pp Question is how can i change point to directory instead to use all of the files(manifests) from this…
2
votes
1 answer

Vagrant Share and local dev domains

How would I go about to share a local dev domain, say myproject.dev, with Vagrant Share? The domain has been set up in hosts to point to Vagrant's default IP address. Is this something I need to add to the config?
Staffan Estberg
  • 6,795
  • 16
  • 71
  • 107
2
votes
0 answers

I have edited .profile , but os.environ doesn't see my variables

That is in .profile: unset PRODROOT CONFROOT PYTHONPATH PYSRCROOT PYTHONCROOT export PRODROOT=${PRODROOT:-/home/peter/Lv-164.UI/ecomap} export PYSRCROOT=${PYSRCROOT:-${PRODROOT}/src/python} export CONFROOT=${CONFROOT:-${PRODROOT}/etc} export…
Sabutobi
  • 347
  • 1
  • 3
  • 18
2
votes
1 answer

@Value with @PropertySource("classpath:application.properties") allways return null

application.properties local=true AppConfig.java @PropertySource("classpath:application.properties") @Configuration public class AppConfig { @Value("${local}") private Boolean local; @Bean public…
Eugenio Valeiras
  • 980
  • 1
  • 9
  • 30
2
votes
2 answers

Storing values in appSettings

I am attempting to store a userID in my config file which I then want to access throughout my program for numerous reasons. I have the appSettings section in the config file like so; I…
CBreeze
  • 2,925
  • 4
  • 38
  • 93
2
votes
1 answer

Write Consistency Levels in DSE Search

I have Datastax cluster (2 cassandra nodes + 1 solr node) with secondary DC (2 cassandra nodes + 1 solr node). DSE 4.6. Secondary DC id down (i had to turn it off due to hardware problems). I want to change my solrconfig: curl…
Przemek
  • 21
  • 1
2
votes
2 answers

Storing and accessing a log4net config file via SQL

A co-worker had told me that he thought it was possible to store/access log4net's config file in a database rather than a standard config file. If it's possible, how would you go about doing this? Google search seems to be failing me.
Gary the Llama
  • 321
  • 1
  • 4
  • 15
2
votes
1 answer

Restrict access to static files in NGINX by PHP business logic?

I have nginx web-server and PHP business logic. I want to allow access static files (images, media) only for certain users. The authentication rules are defined in PHP. I understand that it is easily achievable via serving static files through PHP.…
Dmitriy Lezhnev
  • 801
  • 2
  • 10
  • 18
2
votes
0 answers

How to write nginx config file to allow 3 languages switching.

From this example, it explains the way to write nginx config to switch the language between DE and EN. using Modx as CMS. However, I have 3 languages which are EN/DA/TH. Please guide me to the right approach of writing nginx config to change between…
mangajin
  • 23
  • 2
2
votes
2 answers

Docker configuration using the systemd configuration style

I note that the Docker documentation is gradually moving towards the systemd method of initialisation and hence configuration. I'm somewhat uncertain how you add "insecure-registry" entries to Docker when using the systemd configuration…
user835745
  • 1,974
  • 3
  • 17
  • 18
2
votes
1 answer

Laravel in sub-folder on nginx

I'm trying to configure nginx so that I can run a main website out of /, and then to also run a new Laravel site out of /myapp. I've already gotten rid of the need for /myapp/public in the app itself (the public folder part of it), so all I need is…
carbide20
  • 1,717
  • 6
  • 29
  • 52