Skip to content

Suggestion: centralized configuration file for easier customization #94

@GSEPE

Description

@GSEPE

This is not exactly a bug but rather a difficulty I'm experiencing.

The Docker setup works perfectly, but I'm struggling with customization.
The only parameter I can successfully configure is baseURLFlag in main.go, where I set my self-hosted URL. However, any other modification in this file or in other repository files seems not to have taken effect.

It would be great to have a configuration file (e.g., config.*) where all modifiable parameters are centralized. This could include base_url, admin/user credentials, various true/false flags, ports, and possibly options for enabling reCAPTCHA. Passwords could also be hashed on the first script execution.

I understand many of these parameters might already be configurable within the binary for quick setup. However, even if I prefer docker, I cannot start it. Even after launching the binary as indicated in the Makefile, I received the following error:

Unable to connect to the database: Unable to ping the database: db:5432

The docker compose -f ci.yml up --abort-on-container-exit exits with the error code 0, so the test is successful (genius move having this script).
(yes, I run docker compose without the -)

`docker version`
Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-130-generic x86_64)

Client: Docker Engine - Community
 Version:           27.5.1
 API version:       1.47
 Go version:        go1.22.11
 Git commit:        9f9e405
 Built:             Wed Jan 22 13:41:31 2025
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.5.1
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.22.11
  Git commit:       4c9b3b0
  Built:            Wed Jan 22 13:41:31 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.25
  GitCommit:        bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc:
  Version:          1.2.4
  GitCommit:        v1.2.4-0-g6c52b3f
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

I'm not expecting an immediate fix or reply; I sincerely appreciate this open-source project and the website you provide.
Neither of these should be taken for granted, let alone supporting users like me struggling to figure things out.

So, thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions