Skip to content

Configuration File

OPanel's configuration file is used to manage some global settings for the server panel.

File Location

The location of the configuration file varies depending on the server type. You can refer to the list below to find it:

  • Paper-series servers: /plugins/OPanel/config.yml
  • Forge-based servers: /config/opanel-common.toml
  • Fabric servers: /config/opanel.json (Be sure to shut down the Fabric server before modifying the configuration)

Configuration Options

KeyTypeDescriptionDefaultRequired
accessKeystringHashed value of the panel access key√ (auto-generated)
saltstringSalt used when generating tokens√ (auto-generated)
webServerHoststringHost address of the panel web server0.0.0.0
webServerPortintPort of the panel web server3000
mcdrSocketPortintTarget port for MCDR25576
mapPrerenderConcurrentintNumber of concurrent map pre-rendering threads4
monitorSnapshotIntervalintMonitor snapshot refresh interval (ms)1000
serverRestartDelayintWait time before restarting the server (s)10
cookieSecurebooleanUse HTTPS to transmit cookies securelyfalse
proxyHeadersbooleanWhether to trust proxy headersfalse
oidcEnabledbooleanWhether to enable OIDC loginfalse
oidcDiscoveryUrlstringDiscovery URL of the OIDC provider
oidcClientIdstringOIDC client ID
oidcClientSecretstringOIDC client secret
oidcDisplayNamestringDisplay name shown for OIDC login

Note

  • accessKey stores the hash of the key rather than the key itself. If you lose the key, refer to Quick Start for reset instructions.
  • For mcdrSocketPort, see Connecting to MCDR.
  • cookieSecure requires additional SSL certificate and reverse proxy configuration before HTTPS communication can be enabled.
  • If you are using a reverse proxy, set proxyHeaders to true so OPanel can obtain the correct IP address.
  • For oidc-related settings, see Logging in via OIDC.

Released under the GPL-3.0 License