mirror of https://github.com/tp4a/teleport
Created deployment config (markdown)
parent
dccb3d2186
commit
7c345942e8
|
@ -0,0 +1,107 @@
|
||||||
|
# TELEPORT服务端配置文件说明
|
||||||
|
|
||||||
|
本文中 `%INSTDIR%` 指TELEPORT服务端安装目录。
|
||||||
|
|
||||||
|
TELEPORT配置文件位于 `%INSTDIR%/data/etc` 目录下(v2.2.8.1之前的版本则位于 `/etc/teleport` 目录下)。服务端包含两个配置文件:core.ini和web.ini,其中,core.ini用于核心服务,web.ini用于WEB服务。
|
||||||
|
|
||||||
|
## core.ini
|
||||||
|
|
||||||
|
```ini
|
||||||
|
; codec: utf-8
|
||||||
|
|
||||||
|
[common]
|
||||||
|
; 'log-file' 定义核心服务日志文件。如果没有设置,默认为 %INSTDIR%/data/log/tpcore.log
|
||||||
|
;log-file=/var/log/teleport/tpcore.log
|
||||||
|
|
||||||
|
; log-level 指定日志等级,可以为 0 到 4 之间的数值,如果没有设置,默认为 2.
|
||||||
|
; LOG_LEVEL_DEBUG 0 log every-thing.
|
||||||
|
; LOG_LEVEL_VERBOSE 1 log every-thing but without debug message.
|
||||||
|
; LOG_LEVEL_INFO 2 log infomation/warning/error message.
|
||||||
|
; LOG_LEVEL_WARN 3 log warning and error message.
|
||||||
|
; LOG_LEVEL_ERROR 4 log error message only.
|
||||||
|
;log-level=2
|
||||||
|
|
||||||
|
; 'debug-mode' 指定是否运行为调试模式,可以是 0 或 1,默认为0,表示不运行为调试模式。
|
||||||
|
; 调试模式下,log-level 强制为 0,且发生错误时会记录函数调用栈。
|
||||||
|
debug-mode=0
|
||||||
|
|
||||||
|
; 'replay-path' 定义录像文件的存放目录,如果没有设置,默认为 %INSTDIR%/data/replay
|
||||||
|
;replay-path=/var/lib/teleport/replay
|
||||||
|
|
||||||
|
; 'web-server-rpc' 定义WEB服务的rpc接口地址,如果没有设置,默认为 http://127.0.0.1:7190/rpc
|
||||||
|
; 注意:如果你修改了web.ini中的端口,必须同步修改本设置项。
|
||||||
|
web-server-rpc=http://127.0.0.1:7190/rpc
|
||||||
|
|
||||||
|
[rpc]
|
||||||
|
; 核心服务的rpc接口监听的IP地址和端口号。
|
||||||
|
; 注意:如果你修改了本设置,请同步修改web.ini中的 'core-server-rpc' 设置项。
|
||||||
|
bind-ip=127.0.0.1
|
||||||
|
bind-port=52080
|
||||||
|
|
||||||
|
[protocol-ssh]
|
||||||
|
enabled=true
|
||||||
|
lib=tpssh
|
||||||
|
bind-ip=0.0.0.0
|
||||||
|
bind-port=52189
|
||||||
|
|
||||||
|
[protocol-rdp]
|
||||||
|
enabled=true
|
||||||
|
lib=tprdp
|
||||||
|
bind-ip=0.0.0.0
|
||||||
|
bind-port=52089
|
||||||
|
|
||||||
|
[protocol-telnet]
|
||||||
|
enabled=false
|
||||||
|
lib=tptelnet
|
||||||
|
bind-ip=0.0.0.0
|
||||||
|
bind-port=52389
|
||||||
|
```
|
||||||
|
|
||||||
|
## web.ini
|
||||||
|
|
||||||
|
```ini
|
||||||
|
; codec: utf-8
|
||||||
|
|
||||||
|
[common]
|
||||||
|
; ip=0.0.0.0
|
||||||
|
|
||||||
|
; WEB服务监听端口,默认为 7190.
|
||||||
|
; 注意:如果你修改了本设置项,请同步修改core.ini中的 web-server-rpc 配置项。
|
||||||
|
; port=7190
|
||||||
|
port=7190
|
||||||
|
|
||||||
|
; 'log-file' 定义核心服务日志文件。如果没有设置,默认为 %INSTDIR%/data/log/tpweb.log
|
||||||
|
;log-file=/var/log/teleport/tpweb.log
|
||||||
|
|
||||||
|
; log-level 指定日志等级,可以为 0 到 4 之间的数值,如果没有设置,默认为 2.
|
||||||
|
; LOG_LEVEL_DEBUG 0 log every-thing.
|
||||||
|
; LOG_LEVEL_VERBOSE 1 log every-thing but without debug message.
|
||||||
|
; LOG_LEVEL_INFO 2 log infomation/warning/error message.
|
||||||
|
; LOG_LEVEL_WARN 3 log warning and error message.
|
||||||
|
; LOG_LEVEL_ERROR 4 log error message only.
|
||||||
|
;log-level=2
|
||||||
|
|
||||||
|
; 'debug-mode' 指定是否运行为调试模式,可以是 0 或 1,默认为0,表示不运行为调试模式。
|
||||||
|
; 调试模式下,log-level 强制为 0,且发生错误时会记录函数调用栈。
|
||||||
|
debug-mode=0
|
||||||
|
|
||||||
|
; 'core-server-rpc' 定义核心服务的rpc接口地址,如果没有设置,默认为 http://127.0.0.1:52080/rpc
|
||||||
|
; 注意:如果你修改了core.ini中的端口,必须同步修改本设置项。
|
||||||
|
core-server-rpc=http://127.0.0.1:52080/rpc
|
||||||
|
|
||||||
|
[database]
|
||||||
|
; 数据库类型,可以是 sqlite 或 mysql, 默认为 sqlite.
|
||||||
|
; type=sqlite
|
||||||
|
|
||||||
|
; 当数据库设置为使用 sqlite 时,指定sqlite数据库文件的路径,如果未指定,默认为 %INSTDIR%/data/db/ts_db.db
|
||||||
|
; sqlite-file=/var/lib/teleport/data/ts_db.db
|
||||||
|
|
||||||
|
; 当数据库设置为使用 mysql 时,指定mysql数据库的访问地址和用户账号信息。
|
||||||
|
; 注意:如需使用mysql数据库,需要先创建对应的数据库和用户,并为用户授权访问指定的数据库。
|
||||||
|
; mysql-host=127.0.0.1
|
||||||
|
; mysql-port=3306
|
||||||
|
; mysql-db=teleport
|
||||||
|
; mysql-prefix=tp_
|
||||||
|
; mysql-user=teleport
|
||||||
|
; mysql-password=password
|
||||||
|
```
|
Loading…
Reference in New Issue