forked from supertokens/supertokens-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
94 lines (59 loc) · 3.67 KB
/
config.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
84
85
86
87
88
89
90
91
92
93
94
# Config for SuperTokens service. Here you will set the config params for
# the main service as well as your database.
# Some parameters are compulsory and are indicated via a (COMPULSORY) tag.
# Others are optional and are indicated via a (OPTIONAL) tag.
# To see the default values of the optional params are mentioned in the tag itself
core_config_version: 0
# (OPTIONAL | Default: 3567) integer value. The port at which SuperTokens service runs.
# port:
# (OPTIONAL | Default: "localhost") string value. The host on which SuperTokens service runs. Values here can
# be localhost, example.com, 0.0.0.0 or any IP address associated with your machine
# host:
# (OPTIONAL | Default: 3600) integer value. Time in seconds for how long an access token is valid for.
# access_token_validity:
# (OPTIONAL | Default: false) boolean value. If true, allows for immediate revocation of any access token.
# Keep in mind that setting this to true will result in a db query for each API call that
# requires authentication.
# This feature is available in paid plans only.
# access_token_blacklisting:
# (OPTIONAL | Default: "/") string value. Set this to the prefix for all your APIs that require
# authentication. For example, if your APIs have the path "/api/a", "/api/b" etc..
# set this to "/api" or to "/"
# access_token_path:
# (OPTIONAL | Default: true) boolean value. If this is set to true, the JWT (access token)
# signing key will change every fixed intervale of time.
# This feature is available in paid plans only.
# access_token_signing_key_dynamic:
# (OPTIONAL | Default:24) integer value. Time in hours for how frequently the JWT (access token) signing key
# will change. This value only makes sense if "access_token_signing_key_dynamic" is true.
# This feature is available in paid plans only.
# access_token_signing_key_update_interval:
# (OPTIONAL | Default: true) boolean value. Protects against CSRF attack if this is set to true.
# enable_anti_csrf:
# (OPTIONAL | Default: 144000) double value. Time in mins for how long a refresh token is valid for.
# refresh_token_validity:
# (OPTIONAL | Default: "/session/refresh") string value. Set this to be the path for your refresh API. For example,
# if your refresh API URL is "https://api.example.com/refresh", then the
# value of this param should be "/refresh"
# refresh_api_path:
# (OPTIONAL | Default: installation directory/logs/info.log) string value. Give the path to a file (on your local
# system) in which the SuperTokens service can write INFO logs to. Set it to "null" if you want it to log to
# standard output instead.
# info_log_path:
# (OPTIONAL | Default: installation directory/logs/error.log) string value. Give the path to a file (on your local
# system) in which the SuperTokens service can write ERROR logs to. Set it to "null" if you want it to log to
# standard error instead
# error_log_path:
# (OPTIONAL | Default: not set) string value. If not set, it automatically is set to the domain from where the
# cookies were created. If this is set, it should be equal to the domain of your APIs.
# For example (api.example.com). Do not set any port here and do not put http:// or https://
# cookie_domain:
# (OPTIONAL | Default: false) boolean value. Sets if the cookies are secure or not.
# cookie_secure:
# (OPTIONAL | Default: "lax") string value. Sets the sameSite attribute for cookies issued by SuperTokens. The values
# can be "none" | "lax" | "strict"
# cookie_same_site:
# (OPTIONAL | Default: 10) integer value. Sets the max thread pool size for incoming http server requests.
# max_server_pool_size:
# (OPTIONAL | Default: 401) integer value. The status code your backend APIs send on session expiry
# session_expired_status_code: