-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-example.yml
97 lines (73 loc) · 3.13 KB
/
config-example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# --------------------------------- #
# Kanae's Configuration file #
# --------------------------------- #
# This holds the configuration for Kanae. This file is not settable during runtime.
# If you wish to change the values, change and save, and restart your server
# Entries pertaining to Kanae are located here
kanae:
# Host that the server will use.
# Set to 0.0.0.0 if running in Docker
host: "localhost"
# Port that the server binds to.
# Defaults to 8000
port: 8000
# Whether the development mode should be enabled or not
# This should be disabled during production
dev_mode: False
# Global ratelimit for Kanae
# Syntax is amount/minute. Ex: 1/minute
ratelimits:
- "10/second"
# Prometheus exporter for Kanae. The following keys are used in order to control
# the behavior of the Prometheus exporter
prometheus:
# Whether the Prometheus exporter is enabled or not
enabled: False
# The host that the Prometheus exporter will bind to. By default,
# it will always be set to 127.0.0.1
host: "127.0.0.1"
# The port used for the Prometheus exporter. By default,
# it will always be set to 9555
port: 9555
# These are used by SuperTokens for our backend auth
auth:
# Name of the app. Defaults to ucmacm-website
name: "ucmacm-website"
# Domain (includes https://) of the backend server (aka the domain for Kanae)
# If you are testing, leave this to be http://localhost:8000
# MUST be replaced in production
api_domain: "http://localhost:8000"
# Domain (include https://) of the frontend website
# If you are testing, leave this to be http://localhost:5173 and have the frontend up
# MUST be replaced in production
website_domain: "http://localhost:5173"
# The backend SuperToken managed or core instance.
# https://try.supertokens.com can be used for demo purposes, but we will be replacing it with a developer version
connection_uri: ""
# API key used for SuperTokens
# Used on the hosted version
api_key: ""
# Social login providers (e.g. Google, Github, etc)
providers:
# OAuth2 login using Google accounts
# Follow the setup instructions here: https://support.google.com/cloud/answer/6158849?hl=en
# Auth callback is http://localhost:5173/auth/callback/google
google:
# OAuth2 client id
client_id: ""
# OAuth2 client secret
client_secret: ""
# OAuth2 scopes
# Currently these are the ones needed:
# - https://www.googleapis.com/auth/userinfo.profile
# - https://www.googleapis.com/auth/userinfo.email
scopes:
- "https://www.googleapis.com/auth/userinfo.profile"
- "https://www.googleapis.com/auth/userinfo.email"
# The PostgreSQL connection URI that is used to connect to the database
# The URI must be valid, and components will need to be quoted.
# See https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
postgres_uri: "postgresql://user:password@localhost:5432/user"
# The Redis connection URI that is used
# See https://github.com/redis/lettuce/wiki/Redis-URI-and-connection-details#uri-syntax for URI syntax
redis_uri: "redis://localhost:6379/0"