; App name
APP_NAME = ProxyPool
[server]
HTTP_ADDR = 0.0.0.0
HTTP_PORT = 3000
; Session expires time
SESSION_EXPIRES = 168h0m0s
[database]
; Either "mysql", "postgres" or "sqlite3", you can connect to TiDB with MySQL protocol
DB_TYPE = sqlite3
HOST = 192.168.13.105:3306
NAME = ProxyPool
USER = root
PASSWD = 5XSwBxGx
; For "postgres" only, either "disable", "require" or "verify-full"
SSL_MODE = disable
; For "sqlite3" and "tidb", use absolute path when you start as service
PATH = data/ProxyPool.db
[log]
; Can be "console" and "file", default is "console"
; ; ; Use comma to separate multiple modes, e.g. "console, file"
MODE = console
; Buffer length of channel, keep it as it is if you don't know what it is.
BUFFER_LEN = 100
; Either "Trace", "Info", "Warn", "Error", "Fatal", default is "Trace"
LEVEL = Info
; Root path of log files, align will fill it automatically.
ROOT_PATH =
; For "console" mode only
[log.console]
; leave empty to inherit
LEVEL = Trace
; For "file" mode only
[log.file]
; leave empty to inherit
LEVEL = Info
; This enables automated log rotate (switch of following options)
LOG_ROTATE = true
; Segment log daily
DAILY_ROTATE = true
; Max size shift of single file, default is 28 means 1 << 28, 256MB
MAX_SIZE_SHIFT = 28
; Max line number of single file
MAX_LINES = 1000000
; Expired days of log file (delete after max days)
MAX_DAYS = 7
[log.xorm]
; Enable file rotation
ROTATE = true
; Rotate every day
ROTATE_DAILY = true
; Rotate once file size excesses x MB
MAX_SIZE = 100
; Maximum days to keep logger files
MAX_DAYS = 3
[security]
INSTALL_LOCK = true
conf/app.ini