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
| Key | Type | Description | Default | Required |
|---|---|---|---|---|
accessKey | string | Hashed value of the panel access key | √ (auto-generated) | |
salt | string | Salt used when generating tokens | √ (auto-generated) | |
webServerHost | string | Host address of the panel web server | 0.0.0.0 | |
webServerPort | int | Port of the panel web server | 3000 | √ |
mcdrSocketPort | int | Target port for MCDR | 25576 | |
mapPrerenderConcurrent | int | Number of concurrent map pre-rendering threads | 4 | |
monitorSnapshotInterval | int | Monitor snapshot refresh interval (ms) | 1000 | |
serverRestartDelay | int | Wait time before restarting the server (s) | 10 | |
cookieSecure | boolean | Use HTTPS to transmit cookies securely | false | |
proxyHeaders | boolean | Whether to trust proxy headers | false | |
oidcEnabled | boolean | Whether to enable OIDC login | false | |
oidcDiscoveryUrl | string | Discovery URL of the OIDC provider | ||
oidcClientId | string | OIDC client ID | ||
oidcClientSecret | string | OIDC client secret | ||
oidcDisplayName | string | Display name shown for OIDC login |
Note
accessKeystores 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. cookieSecurerequires additional SSL certificate and reverse proxy configuration before HTTPS communication can be enabled.- If you are using a reverse proxy, set
proxyHeaderstotrueso OPanel can obtain the correct IP address. - For
oidc-related settings, see Logging in via OIDC.