aboutsummaryrefslogtreecommitdiff
path: root/src/common/Configuration
AgeCommit message (Collapse)Author
2021-08-19Core/Config: Implement config override with env vars (#26811)Anton Popovichenko
* Core/Config: Implement config override with env vars Implement overriding of configuration from the .conf file with environment variables. Environment variables keys are autogenerated based on the keys defined in .conf file. Usage example: $ export TC_DATA_DIR=/usr $ TC_WORLD_SERVER_PORT=8080 ./worldserver * Core/Config Fix typo in logs Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> * Core/Config Fix code style in EnvVarForIniKey Co-authored-by: Shauren <shauren.trinity@gmail.com> * Update tests/common/Config.cpp * Apply suggestions from code review Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> * Apply suggestions from code review Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com> Co-authored-by: Anton Popovichenko <anton.popovichenko@mendix.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> Co-authored-by: Shauren <shauren.trinity@gmail.com> Co-authored-by: Peter Keresztes Schmidt <carbenium@outlook.com>
2020-08-29Core/Config: Restore ability to load additional config files for custom scriptsShauren
2020-08-26Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR ↵Treeston
#25335)
2020-08-24Revert "[3.3.5] Core/ChatCommands: C++17 cleanup (if constexpr + ↵Treeston
std::string_view)" This reverts commit 11c4a60fbe9d471618e0579f588706746ff3e439.
2020-08-24[3.3.5] Core/ChatCommands: C++17 cleanup (if constexpr + std::string_view)Treeston
2020-07-31Core/Common: Allow config settings to be loaded as optional (PR #25137)Treeston
If the config setting is not present, returns the default without issuing a warning.
2020-01-02New yearAokromes
Say bye bye to every year changing dates
2019-03-31Core/Misc: Fix GCC 8 warningsjackpoz
2019-01-01Happy New Year, folks. It's 2019!Treeston
2018-01-01Update copyright note for 2018tkrokli
Best wishes for the new year.
2017-06-19Core: ported headers cleanup from master branchariel-
2017-01-02Update Copyright notice for 2017tkrokli
Happy new year!
2016-04-18Core/Scripting: Use the path of the worldserver executable to search for the ↵Naios
scripts dir * Fixes issues when starting the worldserver not in the bin directory or the CMAKE_INSTALL_PREFIX directory using the -c option.
2016-03-31Core/Config: Fix 3 more missing config warningsDDuarte
Closes #16861 Thanks tkrokli (cherry picked from commit 0afcefea2724081968b07119ebd54943fdc44b60)
2016-03-31Core/Config: Error logging for ptree_bad_dataDDuarte
Ref https://github.com/TrinityCore/TrinityCore/commit/6487e2f2d6a1ddbeff77362219658376b8a3f9f0#commitcomment-16888976 (cherry picked from commit 9431b94bff939457cb915da3728cda6067674558)
2016-03-27Core/Startup: Warn when a config key isn't found in the config filesDDuarte
Example: "Missing name Guild.SaveInterval in config file worldserver.conf, add "Guild.SaveInterval = 15" to this file" (cherry picked from commit 06b3bca0d2bf6f049128da110681a5244d90225a) # Conflicts: # src/common/Configuration/Config.cpp
2016-03-24Core/Common: Converted the common library to a shared library.Naios
* There is still the possibility to static link against common. (cherry picked from commit 501fd9b50232ca3ae3623877c3e521c9c1f894be)
2016-03-11Core/Common: Move singleton instances into compilation unitsNaios
* Fixes issues when building shared libraries (prevents gcc and clang from providing several instance) (cherry picked from commit 5c91586797f199259567629a1d4d3f987c73e53c)
2016-02-22Core/Common: Add a generic config helper to access built-in overwriteable paths.Naios
* Adds CMAKE_COMMAND and CMAKE_BINARY_DIR to revision_data.h * Move the source and mysql exe path handling out of the DBUpdater. * Make some Config methods const for correctness. * Remove C & CXX flags from revision_data.h (was unused and didn't capture all cxx vars) * Reorder the link order to prevent `ld` from ignoring the file * Ref #15671 (cherry picked from commit 719159e2074ac2d0902c70bdd3c7a39e0d311bbe)
2016-01-01Update copyright note for 2016Rushor
2015-08-16Core/BuildSystem: Merge collision, debugging, threading, utilities and ↵StormBytePP
configuration into "common" which does not depend on shared anymore and moved database out of shared library These changes enables to build tools only without even having MySQL installed