summaryrefslogtreecommitdiffstats
path: root/net/frp/files/frps.config
blob: 1cd8bfa39cd988ec7ed88fc86ab254602f338ae8 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
config init
	option stdout '1'
	option stderr '1'
#	Uncomment to run frps 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/frps_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/frps.d/.
#	Use raw settings below for table-specific extra options such as HTTP plugins.
#	list conf_inc '/etc/frp/frps.d/frps_extra.toml'

config conf 'common'
	option bind_addr '0.0.0.0'
	option bind_port '7000'

	option authentication_method 'token'
#	option token 'your_token'
#	Alternatively, load a token from a file or command. Exec token sources
#	require frps 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/server_token'
#	option token_source_type 'exec'
#	option token_source_exec_command '/usr/bin/get-frps-token'
#	list token_source_exec_args '--format'
#	list token_source_exec_args 'raw'
#	list token_source_exec_env 'TOKEN_SERVICE=production'

	option max_pool_count '5'
	option tcp_mux 'true'
	option tls_force 'false'
	option detailed_errors_to_client 'true'

	# Web server is disabled when admin_port is empty or 0.
#	option admin_addr '127.0.0.1'
#	option admin_port '7500'
#	option admin_user 'admin'
#	option admin_pwd 'admin'
	option admin_tls_enable 'false'
	option pprof_enable 'false'
	option enable_prometheus 'false'
#	option admin_tls_cert_file '/etc/ssl/acme/example.com.fullchain.crt'
#	option admin_tls_key_file '/etc/ssl/acme/example.com.key'

#	Allow ports can be single ports or ranges.
#	list allow_ports '2000-3000'
#	list allow_ports '3001'

	option log_file 'console'
	option log_level 'info'
	option log_max_days '3'

#	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"'

# HTTP plugin hooks for frps. This emits [[httpPlugins]] TOML tables.
#config http_plugin 'user_manager'
#	option name 'user-manager'
#	option addr '127.0.0.1:9000'
#	option path '/handler'
#	list ops 'Login'
#	option tls_verify 'false'

#config http_plugin 'port_manager'
#	option name 'port-manager'
#	option addr '127.0.0.1:9001'
#	option path '/handler'
#	list ops 'NewProxy'
#	option tls_verify 'false'