summaryrefslogtreecommitdiffstats
path: root/net/frp/files/frpc.config
blob: 333caa10142b277c3925cec0bef8f9c94102e276 (plain)
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
config init
	option stdout '1'
	option stderr '1'
#	Uncomment to run frpc as an existing user/group. Keep disabled by
#	default to avoid permission issues with certificate, log and included
#	config files.
#	option user 'nobody'
#	option group 'nogroup'
	option respawn '1'
#	For full configuration options, see:
#	https://github.com/fatedier/frp/blob/master/conf/frpc_full_example.toml
#
#	Additional config files should be readable root-level TOML fragments.
#	The service will refuse to start if a listed fragment is missing or outside /etc/frp/frpc.d/.
#	Use frp's own includes option or per-proxy raw settings for proxy/visitor tables.
#	list conf_inc '/etc/frp/frpc.d/frpc_extra.toml'

config conf 'common'
	option server_addr '127.0.0.1'
	option server_port '7000'
	option authentication_method 'token'
#	option token 'your_token'
#	Alternatively, load a token from a file or command. Exec token sources
#	require frpc to run with --allow-unsafe=TokenSourceExec; the init script
#	adds that flag automatically when token_source_type is exec.
#	option token_source_type 'file'
#	option token_source_file_path '/etc/frp/client_token'
#	option token_source_type 'exec'
#	option token_source_exec_command '/usr/bin/get-frpc-token'
#	list token_source_exec_args '--format'
#	list token_source_exec_args 'raw'
#	list token_source_exec_env 'TOKEN_SERVICE=production'
	option login_fail_exit 'true'
	option protocol 'tcp'
	option wire_protocol 'v1'
	option tcp_mux 'true'
	option tls_enable 'true'
	option disable_custom_tls_first_byte 'true'
	# Web server is disabled when admin_port is empty or 0.
#	option admin_addr '127.0.0.1'
#	option admin_port '7400'
#	option admin_user 'admin'
#	option admin_pwd 'admin'
	option admin_tls_enable 'false'
	option pprof_enable 'false'
#	option admin_tls_cert_file '/etc/ssl/acme/example.com.fullchain.crt'
#	option admin_tls_key_file '/etc/ssl/acme/example.com.key'
	option log_file 'console'
	option log_level 'info'
	option log_max_days '3'
#	Uncomment to enable runtime proxy/visitor persistence via frpc web UI or API.
#	option store_path '/etc/frp/frpc_store.json'
#	List options with name "_" will be directly appended as raw TOML lines.
#	Use this only for options not covered by UCI options above.
#	Do not duplicate keys generated by UCI options above.
#	list _ 'uncovered.option = "value"'

config conf 'ssh'
	option name 'ssh'
	option type 'tcp'
	option local_ip '127.0.0.1'
	option local_port '22'
	option remote_port '6000'
	option enabled 'true'