-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.yml
42 lines (34 loc) · 1.63 KB
/
conf.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
# yaml-language-server: $schema=conf.schema.json
database:
dsn: "postgres://postgres:changeme@db:5432/skynet" # database dsn, support sqlite, mysql, postgresql
redis:
enable: true # enable redis
dsn: "redis://redis:6379/0" # redis dsn
session:
key: "Ckm7cYj0XDaIkGQeXYun7fuduCT8V5dMwYzMAz2mb5nlj3FTAgLYp5MstHh18PW8" # session sign key, at least 64 in length
prefix: "session_" # prefix in redis, please prevent glob pattern keywords like ? and *
cookie: "SESSIONID" # session cookie name
expire: 3600 # default expire time seconds
remember: 5184000 # remember expire time seconds
listen:
address: "0.0.0.0:8080" # listen address
worker: 0 # web workers, 0 for cores
ssl: false # enable ssl
# ssl_cert: "" # ssl certificate path(.crt)
# ssl_key: "" # ssl key path(.key)
header:
csp: "default-src 'none'; script-src https://www.recaptcha.net https://www.gstatic.cn https://www.gstatic.com 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; base-uri 'self'; frame-src 'self' https://www.recaptcha.net" # Content Security Policy, https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
proxy:
enable: false # if skynet is behind proxy, enable to get correct ip
header: "X-Real-Address" # ip:port header set by proxy server
recaptcha:
enable: false # if enable recaptcha
url: "https://www.recaptcha.net" # verify url
# sitekey: "" # recaptcha sitekey
# secret: "" # recaptcha secret
timeout: 10 # connect timeout seconds
csrf:
prefix: "csrf_" # redis prefix
expire: 10 # timeout second
avatar: "default.webp" # default avatar
lang: "en-US" # default language