Skip to content

Configuration Reference

Advanced frp Tunnel Configuration

This panel fully supports frp’s original JSON configuration format. Simply paste your configuration JSON into the Server/Client Advanced Mode editor and save. For detailed usage, see the frp documentation.

Startup Configuration Files

The application loads configuration in the following order:

  1. .env in the working directory
  2. /etc/frpp/.env

Environment Variable Reference

Documentation may be somewhat outdated…

For the complete and latest configuration reference, see: settings.go

TypeEnvironment VariableDefaultDescription
stringAPP_SECRETApplication secret used to encrypt communication between Client, Server, and Master
stringAPP_GLOBAL_SECRETfrp-panelGlobal secret used to generate keys. Keep this value secure.
intAPP_COOKIE_AGE86400Cookie lifetime in seconds (default: 1 day)
stringAPP_COOKIE_NAMEfrp-panel-cookieCookie name
stringAPP_COOKIE_PATH/Cookie path
stringAPP_COOKIE_DOMAINCookie domain
boolAPP_COOKIE_SECUREfalseWhether the cookie is marked Secure
boolAPP_COOKIE_HTTP_ONLYtrueWhether the cookie is HTTP-only
boolAPP_ENABLE_REGISTERfalseEnable user registration. Only the first user can register (administrator).
intMASTER_API_PORT9000Master API port
stringMASTER_API_HOSTMaster API host (can be behind a reverse proxy or CDN)
stringMASTER_API_SCHEMEhttpMaster API scheme (for client command generation; HTTPS must be handled via reverse proxy)
intMASTER_CACHE_SIZE10Cache size in MB
stringMASTER_RPC_HOST127.0.0.1Master RPC host or public IP
intMASTER_RPC_PORT9001Master RPC port
boolMASTER_COMPATIBLE_MODEfalseCompatibility mode for official frp clients
stringMASTER_INTERNAL_FRP_SERVER_HOSTHost for Master’s built-in frps instance (for client connections)
intMASTER_INTERNAL_FRP_SERVER_PORT9002Port for Master’s built-in frps instance (for client connections)
stringMASTER_INTERNAL_FRP_AUTH_SERVER_HOST127.0.0.1Host for Master’s built-in frps authentication service
intMASTER_INTERNAL_FRP_AUTH_SERVER_PORT8999Port for Master’s built-in frps authentication service
stringMASTER_INTERNAL_FRP_AUTH_SERVER_PATH/authPath for Master’s built-in frps authentication service
intSERVER_API_PORT8999Server API port
stringDB_TYPEsqlite3Database type (e.g., mysql, postgres, sqlite3)
stringDB_DSNdata.dbDatabase DSN. For sqlite3, this is a file path (default in working directory). For other databases, use DSN.
stringCLIENT_IDClient ID
stringCLIENT_SECRETClient secret