summaryrefslogtreecommitdiffstats
path: root/crates/auth-service/auth.toml
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-07-26 19:24:38 +0200
committerrtkay123 <dev@kanjala.com>2025-07-26 19:24:38 +0200
commite26d87f4fa18999c6bcfbcf32cfa85adab11acdd (patch)
tree603c6dacb6c448984bdcc5fa2b4a9314f1a23960 /crates/auth-service/auth.toml
parent236876f1d0539ac22a3977fd8599933725ad0f90 (diff)
downloadsellershut-e26d87f4fa18999c6bcfbcf32cfa85adab11acdd.tar.bz2
sellershut-e26d87f4fa18999c6bcfbcf32cfa85adab11acdd.zip
feat(auth): create user call
Diffstat (limited to 'crates/auth-service/auth.toml')
-rw-r--r--crates/auth-service/auth.toml40
1 files changed, 40 insertions, 0 deletions
diff --git a/crates/auth-service/auth.toml b/crates/auth-service/auth.toml
new file mode 100644
index 0000000..8febe90
--- /dev/null
+++ b/crates/auth-service/auth.toml
@@ -0,0 +1,40 @@
+[application]
+env = "development"
+port = 1304
+
+[nats]
+hosts = ["nats://localhost:4222"]
+
+[misc]
+profile-endpoint = "http://localhost:1610"
+
+[misc.oauth]
+session-lifespan = 3600 # seconds
+jwt-encoding-key = "secret"
+
+[misc.oauth.discord]
+# query param for provider
+redirect-url = "http://127.0.0.1:1304/auth/authorised?provider=discord"
+#client-id = ""
+#client-secret = ""
+#auth-url = ""
+
+
+[monitoring]
+log-level = "auth_service=trace,info"
+
+[database]
+pool_size = 100
+port = 5432
+name = "auth"
+host = "localhost"
+password = "password"
+user = "postgres"
+
+[cache]
+dsn = "redis://localhost:6379"
+pooled = true
+type = "non-clustered" # clustered, non-clustered or sentinel
+max-connections = 100
+
+# vim:ft=toml