From 78f61ccdf66572d7432b5b627994038479103653 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Sun, 1 Feb 2026 15:20:13 +0200 Subject: feat: oauth from config --- misc/compose.yaml | 36 ++++++++++++++++++++++++++++++++++++ misc/sellershut.toml | 20 ++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 misc/compose.yaml create mode 100644 misc/sellershut.toml (limited to 'misc') 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 -- cgit v1.2.3