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
monitorHistoryEnabledbooleanWhether to enable monitor history recordingtrue
monitorHistoryMinuteRetentionDaysintRetention period for monitor history at 1-minute resolution (1–30 days)7
monitorHistoryQuarterHourRetentionDaysintRetention period for monitor history at 15-minute resolution (1–365 days)90
monitorHistoryHourlyRetentionDaysintRetention period for monitor history at 1-hour resolution (1–3650 days)365
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 loginOIDC

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.
  • Monitor history retention periods are automatically clamped to the ranges above. The 15-minute retention period must be at least as long as the 1-minute period, and the hourly period must be at least as long as the 15-minute period; smaller values are automatically increased to meet these requirements.
  • 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