gotosocial/internal
kim 43ac0cdb9c
[chore] Global server configuration overhaul (#575)
* move config flag names and usage to config package, rewrite config package to use global Configuration{} struct

Signed-off-by: kim <grufwub@gmail.com>

* improved code comment

Signed-off-by: kim <grufwub@gmail.com>

* linter

Signed-off-by: kim <grufwub@gmail.com>

* fix unmarshaling

Signed-off-by: kim <grufwub@gmail.com>

* remove kim's custom go compiler changes

Signed-off-by: kim <grufwub@gmail.com>

* generate setter and flag-name functions, implement these in codebase

Signed-off-by: kim <grufwub@gmail.com>

* update deps

Signed-off-by: kim <grufwub@gmail.com>

* small change

Signed-off-by: kim <grufwub@gmail.com>

* appease the linter...

Signed-off-by: kim <grufwub@gmail.com>

* move configuration into ConfigState structure, ensure reloading to/from viper settings to keep in sync

Signed-off-by: kim <grufwub@gmail.com>

* lint

Signed-off-by: kim <grufwub@gmail.com>

* update code comments

Signed-off-by: kim <grufwub@gmail.com>

* fix merge issue

Signed-off-by: kim <grufwub@gmail.com>

* fix merge issue

Signed-off-by: kim <grufwub@gmail.com>

* improved version string (removes time + go version)

Signed-off-by: kim <grufwub@gmail.com>

* fix version string build to pass test script + consolidate logic in func

Signed-off-by: kim <grufwub@gmail.com>

* add license text, update config.Defaults comment

Signed-off-by: kim <grufwub@gmail.com>

* add license text to generated config helpers file

Signed-off-by: kim <grufwub@gmail.com>

* defer unlock on config.Set___(), to ensure unlocked on panic

Signed-off-by: kim <grufwub@gmail.com>

* make it more obvious which cmd flags are being attached

Signed-off-by: kim <grufwub@gmail.com>
2022-05-30 14:41:24 +02:00
..
ap [chore] Mastodon api fixups (#617) 2022-05-28 18:59:55 +01:00
api [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
cache [bugfix] Fix existing bio text showing as HTML (#531) 2022-05-07 17:55:27 +02:00
concurrency [performance] Bump default workers to CPUs * 2 (#608) 2022-05-26 11:51:59 +02:00
config [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
db [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
email [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
federation [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
gotosocial test the media manager a bit, add shutdown logic 2022-01-10 18:36:09 +01:00
gtserror emoji code passing muster 2022-01-15 17:36:15 +01:00
gtsmodel [feature] Unused avatar and header cleanup (#574) 2022-05-15 15:45:04 +01:00
httpclient [performance] Don't retry/backoff invalid http requests that will never succeed (#609) 2022-05-26 13:38:41 +02:00
id change muchos things 2021-09-01 11:11:26 +02:00
log [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
media [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
messages Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
netutil [security] transport.Controller{} and transport.Transport{} security and performance improvements (#564) 2022-05-15 11:16:43 +02:00
oauth [feature] add authorization to the already-existing authentication (#365) 2022-02-07 12:04:31 +01:00
oidc [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
processing [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
regexes [bugfix] Fix existing bio text showing as HTML (#531) 2022-05-07 17:55:27 +02:00
router [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
stream Fix streamed messages ending up in wrong timeline(s) (#325) 2021-11-22 19:03:21 +01:00
text [bugfix] Fix HTML escaping in instance title (#607) 2022-05-26 11:37:13 +02:00
timeline [chore] Timeline test updates (#578) 2022-05-16 18:48:59 +02:00
trans Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
transport [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
typeutils [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
uris [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00
util [chore] Mastodon api fixups (#617) 2022-05-28 18:59:55 +01:00
validate [feature] Include password strength in error message when password strength is too low (#550) 2022-05-09 10:31:46 +02:00
visibility [bugfix] Stop some statuses from being home timelined when they shouldn't be (#585) 2022-05-18 22:23:49 +01:00
web [chore] Global server configuration overhaul (#575) 2022-05-30 14:41:24 +02:00