Go to file
Conrad Hoffmann 3c1346e6bb config: allow spreading config over multiple files
This is the Go-equivalent to
https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/47657

This commit enables spreading the config in /etc/sr.ht - and, crucially,
_only_ in /etc/sr.ht - over multiple .ini files.

If a file config.ini is found (either in current or parent directory, or
/etc/sr.ht) it (and only it) is loaded and any other ini files are
ignored. To utilize multiple configs, they must be in /etc/sr.ht, and
none of them must be called config.ini.

Spreading the config over multiple files will make it much easier to
create containerized versions, where e.g. different secrets can be made
available in different files, but rendering it all into one big file
would require some preprocessing.
2024-04-11 16:40:34 +02:00
.builds Update and simplify build manifest 2023-12-04 21:27:31 +01:00
auth auth: add auth.IPAddress 2024-02-18 12:43:38 +01:00
client client: rename Execute to Do 2024-01-24 11:50:42 +01:00
cmd/token go fmt 2021-08-26 13:56:41 +02:00
config config: allow spreading config over multiple files 2024-04-11 16:40:34 +02:00
crypto auth: s/OAuth2Token/BearerToken/g 2021-07-29 10:37:48 +02:00
database database: don't panic on context.DeadlineExceeded 2023-11-30 11:31:27 +01:00
email email: make PGP private key optional 2024-01-24 10:45:40 +01:00
model crypto: harden API surface 2021-01-07 09:38:30 -05:00
redis redis: Update style 2023-06-01 12:30:14 +02:00
s3 s3: add Enabled 2024-02-02 12:08:06 +01:00
server server/directives: disambiguate AnonInternal error message 2024-01-09 11:49:19 +01:00
valid valid: Add Error function 2022-03-14 12:20:44 +01:00
webhooks webhooks: skip webhooks with expired credentials 2023-12-04 21:14:55 +01:00
.gitignore Initial commit 2020-08-20 09:59:23 -04:00
LICENSE Initial commit 2020-08-20 09:59:23 -04:00
README.md README.md: add build badge 2020-10-10 11:28:51 -04:00
go.mod Drop gqlparser v1 dependency 2023-12-07 14:14:28 +01:00
go.sum Drop gqlparser v1 dependency 2023-12-07 14:14:28 +01:00
placeholder.go Initial commit 2020-08-20 09:59:23 -04:00

README.md

This repository contains code shared among all Go sr.ht projects. For instructions on deploying or contributing to this project, visit the manual here:

https://man.sr.ht/installation.md

builds.sr.ht status