mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-10 18:34:18 +08:00
79 lines
2.7 KiB
Plaintext
79 lines
2.7 KiB
Plaintext
config init
|
|
option enabled '1'
|
|
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'
|