-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgorch.toml.example
More file actions
56 lines (50 loc) · 1.51 KB
/
Copy pathgorch.toml.example
File metadata and controls
56 lines (50 loc) · 1.51 KB
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
LOG_DIR = '/tmp/gorch/logs'
[services]
[services.api]
BACK_OFF = 5
CRON = "0 */30 * * * *"
DEPENDS_ON = ["redis"]
ENV_VARS = { DEBUG = "true", REDIS_URL = "redis://localhost:6379/0" }
EXEC_CMD = "python3 manage.py runserver 0.0.0.0:8000"
RESTART_POLICY = "on-failure"
STDOUT = "/tmp/gorch/logs/api.out.log"
STDERR = "/tmp/gorch/logs/api.err.log"
WORK_DIR = "/home/ryan/app/backend"
[services.godoc]
BACK_OFF = 3
EXEC_CMD = './bin/godoc -http=127.0.0.1:6060'
RESTART_POLICY = 'on-failure'
STDERR = '/tmp/gorch/logs/godoc.err.log'
STDOUT = '/tmp/gorch/logs/godoc.out.log'
WORK_DIR = '/home/ryan/gopath'
[services.nginx]
DEPENDS_ON = ["api"]
EXEC_CMD = "nginx -g 'daemon off;'"
PID_FILE = "/var/run/nginx.pid"
RESTART_CMD = "nginx -s reload"
RESTART_POLICY = "always"
[services.redis]
BACK_OFF = 3
EXEC_CMD = "redis-server /etc/redis/redis.conf"
RESTART_POLICY = "always"
STDOUT = "/tmp/gorch/logs/redis.log"
[services.test]
CRON = "30 */5 9-17 * * *"
EXEC_CMD = "/bin/date >> /tmp/time.log"
STDERR = '/tmp/gorch/logs/test.err.log'
STDOUT = '/tmp/gorch/logs/test.out.log'
[web]
WEB_AUTH = true
WEB_ADDR = "127.0.0.1:8080"
WEB_ENABLE = true
WEB_PASS = 'secret'
WEB_USER = 'admin'
# Mount the web UI and API under a sub-path, e.g. "/gorch" serves at
# http://host/gorch/api/services. Leave empty ("") for root mount.
# No rebuild needed — the binary reads this at startup and injects
# window.__URL_PREFIX__ into the SPA at runtime.
URL_PREFIX = ""
TOTP_ENABLE = false
# 生成命令: openssl rand -hex 32
TOTP_SECRET = ''
TOTP_DB = 'auth_totp.db'