Questions tagged [configuration]

Configuration is an arrangement of functional units according to their nature, number, and chief characteristics.

Filter by
Sorted by
Tagged with
0
votes
1answer
48 views

Best practice for config files in containerized apps

The suggested file structure for docker container is something like root ├── app/ | ├── ... | └── Dockerfile | ├── db/ | ├── ... | └── Dockerfile ... └── docker-compose.yaml So where ...
0
votes
1answer
38 views

How to design config files for each environment in github?

I have a list of application configs and business configs in a particular root folder inside our git repository. Below is our current structure as of now: We have a root Configurations folder and ...
0
votes
1answer
55 views

Load single module based on configuration using dependency injection

I'm working on an application that will run on multiple systems and may use different modules to communicate with external systems, but on each system, only one module will be used at a time. As it ...
0
votes
0answers
14 views

How to preserve dynamic Configurations for a Process to historize it, load it and use it again for another process?

I want to Store a "Strategy" or "Set of Rules" on how a process is done. In a custumer Base, each User has certain orders. These orders depend on certain other Values. I want to store all User ...
0
votes
4answers
62 views

app.config prevent end users from modifying it

On our product there are many config files (we have many processes) For "logicical" configuration, we store all configuration in a document based database and then distribute the configuration to ...
-1
votes
1answer
78 views

Use two parallel instances of the same .NET assembly

I've have an n-tier .NET 4.6 internal business application. It has a business logic layer class library project that references a data access layer class library project. It's designed to decouple the ...
0
votes
2answers
124 views

C# - Generic Configurable Condition checker at Runtime - Achievement System

I'm writing a "generic" achievement system for my MMORPG project, it needs to be friendly & efficient for my game designers (without having to write code to add new achievements). If anyone got ...
1
vote
2answers
68 views

How do I maintain configuration in the case of multiple test environments and application instances

What's the best practice for maintaining app configuration for multiple test environments, (and production)? At the moment I am keeping all the config in the code repo (a bitbucket server). Configs ...
1
vote
1answer
42 views

Managing Multiple Applications With Similar Configuration Files

From the .Net perspective (C#, VB, etc.) and MSSQL, I have noticed that for a set of applications (maintained by the same development team) typically have the same defined configuration for connecting ...
0
votes
1answer
42 views

Dynamic Configuration vs. Custom Service

I have been designing an email alert system for my customers which allows them to choose what alerts they receive. AlertManager seems suitable, except for it's static configuration file; A customer ...
1
vote
0answers
31 views

Managing config (environment variables) shared by many applications (lambda functions)

In AWS I've got lots (dozens) of lambda functions. As my organization has gained experience with AWS, we've gone through various generations of infrastrucure around building and maintaining our ...
-3
votes
1answer
63 views

How to configure a React app for different environments

We're configuring the build and release pipeline for our frontend code which is built with React. The final output is just some static HTML/Javascript code. The differences between environments are ...
0
votes
1answer
85 views

How to batch organize configuration files?

I've got a program for analyzing specific folders / websites. The program always does the same steps for each folder and website. Therefore I've used JSON files to store configuration (domain name, ...
1
vote
0answers
39 views

How to have a linux repo/application “find itself” on the filesystem?

(cross-post from SU, was told it would be a better fit here) I have a repo/application/ecosystem (I am developing or helping develop), let's call it qux. When qux starts, it needs to source qux-...
1
vote
0answers
293 views

How to handle different XML configurations for different deployments

I am a software developer facing the following problem. Normally, I develop software and put client specific settings in a separate place (config file, database etc.). A new version of the software ...
2
votes
1answer
183 views

How to configure front-end web application from environment?

I'm working on a relatively thin front-end web application that talks to an API. Depending on where this front-end application is served from (CI server, staging server, production server, etc.) I ...
0
votes
2answers
2k views

How to maintain and configure properties files for different environments in Java maven project?

A Java project with maven as build tool needs to be deployed to different environments, such as ci, dev, test, prod etc. Each environment has a properties file with the same set of properties such as: ...
0
votes
1answer
175 views

Advice on designing a scraper DSL

I am creating a DSL for a scraping library I am writing. I would like advice on how to design a DSL, and if the designs I have below are good ones. Apologies if this is an open-ended question, but it ...
2
votes
3answers
371 views

How to deal with configuration files that are becoming too complex

There is a db with tables of genes. And these genes would need to be annotated based on the client's needs. So if a gene matches condition x, then add a new column y and value z to that gene. Every ...
-2
votes
2answers
81 views

Question about Restricting Features and Licensing [closed]

We have a product that contains features (Let's say feature A, B and C). We are about to move it to production (a web application) for a certain client. However, as per my boss, we will deploy the ...
0
votes
1answer
20 views

Set per-process open file limit in code or in system configuration?

I am working on an internal application that is maintained by the same people that operate the servers the application runs on. We have noticed, while transitioning from Windows to Linux, that some ...
3
votes
0answers
95 views

What are best practices for deploying different configurations per environment in Kubernetes/OpenShift?

Kubernetes provides a very elegant mechanism for managing configuration for pods using ConfigMaps. What's not clear from the documentation is what the recommended practice is for using ConfigMaps to ...
0
votes
1answer
71 views

Java design pattern for handling configuration options and responding to changes in them

I'm working on an overlay/HUD for a Java game, where the user should be able to enable or disable certain components and choose configuration options. One such example is a health bar, which the user ...
0
votes
2answers
76 views

Should default values be explicitly stated in configuration files for libraries or frameworks?

In one of the projects I work for, we have just added karma to run unit tests. When reviewing the MR of a coworker, I noticed the karma.conf.js (the configuration file) has 120 lines, which seems to ...
0
votes
1answer
52 views

How can I keep a web application easy to self host while still breaking it up in to multiple smaller components

I am working on an open source web application that I will be hosting on my own server and I estimate most users will use that but I also want to easily allow users to run the application themself. ...
0
votes
3answers
73 views

Looking for best practices of storing configurations that will be read/write frequently

I'm writing a couple small python scripts to do tasks and act as 'bots' in some applications that will all read/write things for configuration and some very low-level logging of information; Whats the ...
3
votes
1answer
85 views

Auto-Initializable Objects Pattern

I'm working on a system where we consistently apply "patterns" or approaches such as Dependency Injection. I'd rather not expose the current underlying technology as not to get biased solutions, ...
5
votes
2answers
495 views

Should a class be responsible for its own configuration

In my workplace I am seeing an issue which I feel is wrong, but I am open to the idea that maybe the way I do it is wrong. A minor example would be a class accepting configuration //pull config from ...
3
votes
2answers
80 views

Environment configuration vs domain detection

We are developing an angular 5 application that must run in different environments (dev, qa, int, uat, prod), and connect to different APIs depending on the environment. We have traditionally have ...
2
votes
3answers
736 views

Where to store application configuration

Until now for each of our applications we store application configuration in the same repository as the code that uses the configuration. We have environment specific yml files (dev, test, .., prod) ...
1
vote
0answers
47 views

Manage several procedures

I have a software project which grows rapidly in an unexpected way, many customers request similar tasks but with slightly different needs and parameters. I start to dislike my current code structure ...
2
votes
1answer
389 views

Where to store config settings in a text file and when in a database?

I have several web applications. All of them have config files. I'm trying to figure out when it's appropriate to store data in a config file and when in database in json or free format? For instance, ...
0
votes
1answer
304 views

Make Docker-based SPA configurable

I have a single page app (Vue JS) that is built and released as docker image. The docker image is based on the official Nginx Docker image and serves the SPA as static content. Until now, there was ...
-1
votes
1answer
41 views

When should you use config transforms rather than compiler directives?

I'm currently working on an application which uses compiler directives to vary settings between environments. Would it be worth refactoring these to use settings in the web.config which will be ...
1
vote
2answers
104 views

CORS handling in application or infrastructure?

What are the cons and the pro for handling CORS in infrastructure or application ? I mean is it better to setup CORS on my nginx/apache/tomcat ? or to handle it by coding in my application ? I have ...
-2
votes
1answer
108 views

What to name my config classes

What name should I give classes which are just for configuration? For example, when using JAX-RS, every application is required to have an Application class which extends the superclass javax.ws.rs....
1
vote
3answers
616 views

What are “orthogonal” environment variables? [12-factor app]

I was reading the 12-factor app while thinking about the design of a personal project. I like a lot of what I read, but the following paragraph confused me: In a twelve-factor app, env vars are ...
-4
votes
2answers
312 views

How to read configuration text files in Java [closed]

I have made a textual minesweeper game (here you can find the program). I want to initialize some data by the help of a file. The file should be readable for humans and easy to modify with a simple ...
1
vote
4answers
378 views

Dealing with settings that will change on a per-environment basis?

We have a bunch of appSettings in our ASP.NET web application, not to mention connection strings, that change on a per-environment basis. Not just for different environments to which the web ...
4
votes
4answers
2k views

Binary data formats, how to make ensure you can read different format versions?

On our project we have this data format that we use to process and record data on. As of late our application changed so that many of the data formats parameters have become obsolete. Currently we ...
1
vote
1answer
86 views

How to manage development credentials vs generic (example) ones?

I am an amateur developper and would like to share some of my code via GitHub or GitLabs. The problem I am trying to resolve is that I have a configuration file with my real credentials (used during ...
2
votes
3answers
1k views

How to manage configuration and state in a program

At my company we have multiple C# programs that use Dictionaries in a config class to keep track of the configuration and state of the program. For example, bool isFoo = config.GetBool("Foo"); ...
0
votes
2answers
329 views

Should I place #define in separate file?

I thinked at two techniques for my #define : Technique 1 SomeClass.h: #define SOME_BUFFER_LENGTH 256 class SomeClass { /* ... */ }; Technique 2 Config.h: #define SOME_BUFFER_LENGTH 256 #define ...
3
votes
3answers
5k views

Storing settings in a table in my SQLite database or separately?

I'm building an application which uses SQLite, and now want to add settings that are stored between sessions I'm considering if I'm going to store the settings in a config file or if I'm going to use ...
1
vote
2answers
2k views

Best practices for storing c++ program parameters

I'm currently developing a project which has multiple c++ programs communicating over IPC to each other. Each of these programs will rely on some parameters to run and these may be common to several ...
2
votes
2answers
167 views

Is it crazy to move deployment logic into test suite …?

We're using (and loving) the jest test framework. Most of our tests are nice compartmentalized good-code-hygiene style unit tests. However we've also written some service level tests (setting up ...
0
votes
1answer
104 views

For Qt, or C++, do modern standards or practices exist for designing Run Configuration files for your programs? [closed]

Backstory I am building a daemon that is to be run in the background on systems based on X11. As of right now, the settings are hardcoded, and that obviously needs to change. As such, I plan to ...
78
votes
7answers
20k views

How bad of an idea is it to use Python files as configuration files?

I've always used JSON files for configuration of my applications. I started using them from when I coded a lot of Java, and now I'm working mainly on server-side and data science Python development ...
2
votes
1answer
64 views

Should I place my app configurations in a JSON file or in a JS module?

I am building a JavaScript application where its behavior (some rules and logic) is configurable via JSON. The configurations are deploy only with a new version of the app. Currently my app, when ...
0
votes
2answers
77 views

How to use functions based on configuration?

let's say that I am working with an IoT device. The device can have many sensors, each of them has an address, i/o direction and a reading method. temperature=d2,input,digital humidity=d3,input,...