Go to file
Florian Beisel 83753c3ee1
🔧 Create a configuration file interface
This commit adds the ability to provide a config file in different ways:

The following options are given in the order in which they are checked:
1. A config file path passed by the -c parameter on the command line
2. A config file path passed by the HS_CONFIGFILE environment variable
3. A config.json file in the application root

Should these fail we try to get the parameters for the config struct
directly from environment variables or secret files as used in a
container environment. As example the JwtKey can be supplied by either
passing the value through:

* An environment variable HS_CONFIG_JWTKEY which contains the value directly
* An environment variable HS_CONFIG_JWTKEY_FILE which contains a path
  pointing to the Secret File
2024-01-18 01:04:43 +01:00
api 🚧 Begin implementing the Models 2024-01-18 00:10:48 +01:00
auth 🔧 Create a configuration file interface 2024-01-18 01:04:43 +01:00
config 🔧 Create a configuration file interface 2024-01-18 01:04:43 +01:00
db 🎨 prepare to make the database name configurable 2024-01-17 22:24:18 +01:00
docs 📝 Update generated documentation with new Models 2024-01-18 00:15:14 +01:00
examples Initial commit 2024-01-17 18:05:55 +01:00
middleware 🔧 Create a configuration file interface 2024-01-18 01:04:43 +01:00
models 📝 Create missing models for API documentation 2024-01-18 00:09:26 +01:00
rules 🐛 Use OldHostname when querying the Database 2024-01-18 00:11:39 +01:00
.gitignore 🔧 Create a configuration file interface 2024-01-18 01:04:43 +01:00
config.example.json 🔧 Create a configuration file interface 2024-01-18 01:04:43 +01:00
go.mod ⬆️ Upgrade dependencies 2024-01-17 22:43:53 +01:00
go.sum ⬆️ Upgrade dependencies 2024-01-17 22:43:53 +01:00
main.go 🔧 Create a configuration file interface 2024-01-18 01:04:43 +01:00