diff --git a/.forgejo/workflows/docker-build.yaml b/.forgejo/workflows/docker-build.yaml index 5a784b5..4abc557 100644 --- a/.forgejo/workflows/docker-build.yaml +++ b/.forgejo/workflows/docker-build.yaml @@ -16,4 +16,5 @@ jobs: with: file: Containerfile tags: git.janky.solutions/finn/lockserver:latest + platforms: linux/amd64,linux/arm64 push: true diff --git a/config/config.go b/config/config.go index 4d10f51..e33118e 100644 --- a/config/config.go +++ b/config/config.go @@ -24,8 +24,10 @@ var C = Config{ SessionSecrets: []JSONBytes{}, } +var configFiles = []string{"lockserver.json", "/etc/lockserver.json"} + func Load() error { - for _, path := range []string{"lockserver.json", "/etc/lockserver.json"} { + for _, path := range configFiles { err := load(path) if err != nil { if errors.Is(err, os.ErrNotExist) {