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
331
votes
24 answers

Getting value from appsettings.json in .net core

Not sure what am I missing here but I am not able to get the values from my appsettings.json in my .net core application. I have my appsettings.json as: { "AppSettings": { "Version": "One" } } Startup: public class Startup { …
aman
  • 4,198
  • 4
  • 24
  • 36
314
votes
2 answers

How to increase the maximum number of opened editors in IntelliJ?

I am building a grails-app with IntelliJ 9.0 and I am a huge fan of the CTR+TAB shortcut that switches between active editors. However, by default, IntelliJ keeps ONLY 10 active editors opened at the same time. It is clearly not enough for me. Do…
fabien7474
  • 16,300
  • 22
  • 96
  • 124
300
votes
9 answers

Performance differences between debug and release builds

I must admit, that usually I haven't bothered switching between the Debug and Release configurations in my program, and I have usually opted to go for the Debug configuration, even when the programs are actually deployed at the customers place. As…
Øyvind Bråthen
  • 59,338
  • 27
  • 124
  • 151
289
votes
21 answers

Nginx 403 error: directory index of [folder] is forbidden

I have 3 domain names and am trying to host all 3 sites on one server (a Digital Ocean droplet) using Nginx. mysite1.name mysite2.name mysite3.name Only 1 of them works. The other two result in 403 errors (in the same way). In my nginx error log, I…
Ryan
  • 22,332
  • 31
  • 176
  • 357
288
votes
11 answers

.NET Core Unit Testing - Mock IOptions

I feel like I'm missing something really obvious here. I have classes that require injecting of options using the .NET Core IOptions pattern(?). When I unit test that class, I want to mock various versions of the options to validate the…
Matt
  • 2,891
  • 2
  • 13
  • 4
287
votes
10 answers

Multiple commands in an alias for bash

I'd like to define an alias that runs the following two commands consecutively. gnome-screensaver gnome-screensaver-command --lock Right now I've added alias lock='gnome-screensaver-command --lock' to my .bashrc but since I lock my workstation so…
yuriel
  • 3,053
  • 2
  • 19
  • 11
285
votes
29 answers

How can I add a filter class in Spring Boot?

Is there any annotation for a Filter class (for web applications) in Spring Boot? Perhaps @Filter? I want to add a custom filter in my project. The Spring Boot Reference Guide mentioned about FilterRegistrationBean, but I am not sure how to use it.
janetsmith
  • 8,562
  • 11
  • 58
  • 76
285
votes
15 answers

ssl_error_rx_record_too_long and Apache SSL

I've got a customer trying to access one of my sites, and they keep getting this error > ssl_error_rx_record_too_long They're getting this error on all browsers, all platforms. I can't reproduce the problem at all. My server and myself are located…
Subimage
  • 4,393
  • 3
  • 24
  • 18
279
votes
16 answers

Copying text outside of Vim with set mouse=a enabled

After enabling set mouse=a, text copied inside of Vim will not paste outside of Vim. Does anybody know of a way to fix this? Here, selecting text with the mouse turns on visual mode and disables the Copy option in the popup menu:
lyuba
  • 6,250
  • 7
  • 27
  • 37
271
votes
4 answers

Best practices when running Node.js with port 80 (Ubuntu / Linode)

I am setting up my first Node.js server on a cloud Linux node and I am fairly new to the details of Linux admin. (BTW I am not trying to use Apache at the same time.) Everything is installed correctly, but I found that unless I use the root login,…
Robotbugs
  • 4,307
  • 3
  • 22
  • 30
264
votes
7 answers

How to change Vagrant 'default' machine name?

Where does the name 'default' come from when launching a vagrant box? $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... Is there a way to set this?
Kyle Kelley
  • 13,804
  • 8
  • 49
  • 78
257
votes
11 answers

Eclipse fonts and background color

I have been trying to change the background color of Eclipse's windows to black and customize the font colors. There doesn't seem to be a way to do this, at least not in an obvious way. I am using version 3.3. How do I do this or are there any…
abarax
  • 6,229
  • 8
  • 28
  • 30
245
votes
16 answers

Getting Spring Application Context

Is there a way to statically/globally request a copy of the ApplicationContext in a Spring application? Assuming the main class starts up and initializes the application context, does it need to pass that down through the call stack to any classes…
Joe Skora
  • 14,735
  • 5
  • 36
  • 39
242
votes
3 answers

What does upstream mean in nginx?

upstream app_front_static { server 192.168.206.105:80; } Never seen it before, anyone knows, what it means?
gdb
  • 7,189
  • 12
  • 38
  • 36
241
votes
10 answers

Spring Boot YAML configuration for a list of strings

I am trying to load an array of strings from the application.yml file. This is the config: ignore: filenames: - .DS_Store - .hg This is the class fragment: @Value("${ignore.filenames}") private List igonoredFileNames =…
Bahadır Yağan
  • 5,577
  • 3
  • 35
  • 39