diff options
| author | rtkay123 <dev@kanjala.com> | 2026-02-01 15:20:13 +0200 |
|---|---|---|
| committer | rtkay123 <dev@kanjala.com> | 2026-02-01 15:20:13 +0200 |
| commit | 78f61ccdf66572d7432b5b627994038479103653 (patch) | |
| tree | 3b752267d04d041c35efe5a9f5c732988179f020 /misc | |
| parent | ce65d9eeafcd1f9d5c3adef1c9b1af6258ee711a (diff) | |
| download | sellershut-78f61ccdf66572d7432b5b627994038479103653.tar.bz2 sellershut-78f61ccdf66572d7432b5b627994038479103653.zip | |
feat: oauth from config
Diffstat (limited to 'misc')
| -rw-r--r-- | misc/compose.yaml | 36 | ||||
| -rw-r--r-- | misc/sellershut.toml | 20 |
2 files changed, 56 insertions, 0 deletions
diff --git a/misc/compose.yaml b/misc/compose.yaml new file mode 100644 index 0000000..1fccb81 --- /dev/null +++ b/misc/compose.yaml @@ -0,0 +1,36 @@ +name: sellershut + +services: + database: + image: docker.io/postgres:18.1-alpine + restart: always + shm_size: 128mb + environment: + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} + PGDATA: /data/postgres + ports: + - 5432:5432 + networks: + - sellershut + volumes: + - db:/data/postgres + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 10s + timeout: 5s + retries: 3 + + adminer: + image: docker.io/adminer:5.4.1 + restart: always + ports: + - 8080:8080 + networks: + - sellershut + +volumes: + db: + driver: local + +networks: + sellershut: diff --git a/misc/sellershut.toml b/misc/sellershut.toml new file mode 100644 index 0000000..0fdef72 --- /dev/null +++ b/misc/sellershut.toml @@ -0,0 +1,20 @@ +[server] +domain = "localhost" +port = 2210 +request-timeout = 10 +log-level = "debug" +system-name = "sellershut" +environment = "dev" + +[oauth] +redirect-url = "https://example.com" + +[oauth.discord] +client-id = "" +client-secret = "" +token-url = "https://example.com" +auth-url = "https://example.com" + +[database] +url = "postgres://postres:password@localhost:5432/sellershut" +pool-size = 100 |
