-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappconfig.example.yaml
83 lines (78 loc) · 2.82 KB
/
appconfig.example.yaml
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
# this is example file, rename it to `appconfig.yaml` or `appconfig.yml`
# you can use environment variable to set configs
# CONFIGURATION IN FILES WILL BE OVERRIDEED BY ENVIRONMENT VARIABLE
app:
# app log level, default is `3` (also means `log`)
# error = 1, warn, log, debug, verbose
## same as: APP_LOG_LEVEL
logLevel: 3
# username and password of user who id = 1 will be force set values below
# admin username, default is `admin`
## same as: APP_ADMIN_USERNAME
adminUsername: 'admin'
# admin password, default is 16 random characters
## same as: APP_ADMIN_PASSWORD
adminPassword: 'mysecret'
oidc:
# use OpenID Connect Auth, default is `false`
## same as: OIDC_ENABLED
enabled: false
# name of OIDC provider
## same as: OIDC_NAME
name: 'My OIDC provider'
# auto configuration url from OIDC provider
## same as: OIDC_AUTO_DISCOVER_URL
autoDiscoverUrl: 'https://example.com/application/supernode/.well-known/openid-configuration'
# clientID and secret from OIDC provider
## same as: OIDC_CLIENT_ID
clientID: '<client ID>'
## same as: OIDC_CLIENT_SECRET
clientSecret: '<client secret>'
# scope of OIDC
## same as: OIDC_SCOPE
scope: 'openid profile email'
# app redirect url
## same as: OIDC_REDIRECT_URL
redirectUrl: 'https://supernode.com'
# admin group mapping, user with admin privileges who is in this group
## same as: OIDC_ADMIN_GROUP
adminGroup: 'admin'
dataSource:
# you can use `sqlite`, `mysql`, `postgres`, default is `sqlite`
## same as: DATA_SOURCE_DIALECT
dialect: 'sqlite'
# data source connection info, only valid when `dialect` is `mysql` or `postgres`
## same as: DATA_SOURCE_HOST
host: 'localhost'
## same as: DATA_SOURCE_PORT
port: 3306
## same as: DATA_SOURCE_USERNAME
username: 'mysql'
## same as: DATA_SOURCE_PASSWORD
password: 'mysql@password'
## same as: DATA_SOURCE_DATABASE
database: 'supernode'
# only valid when `dialect` is `postgres`
## same as: DATA_SOURCE_SCHEMA
schema: 'public'
# database file storage path, only valid when `dialect` is `sqlite`
## same as: DATA_SOURCE_STORAGE
storage: 'db.sqlite'
cache:
# redis used for session cache, default is `undefined`
# if `cache.redisUrl` is `undefined`, session cache will use `momery cache`
## same as: CACHE_REDIS_URL
redisUrl: 'redis://localhost:6379'
supernode:
# udp service port, clients connect supernode service with this port
## same as: SUPERNODE_PORT
port: 7654
# supernode federation name, one federation name pairs one server public key
## same as: SUPERNODE_FEDERATION_NAME
federationName: '*Federation'
# server spoofing protection, recommand set to `false`
## same as: SUPERNODE_DISABLE_SPOOFING_PROTECTION
disableSpoofingProtection: false
# communities' subnet range
## same as: SUPERNODE_SUBNET_RANGE
subnetRange: '10.128.255.0-10.255.255.0/24'