> How can I access and change the server configuration in SPX Graphics Controller?
[[Documentation/Server/Overview|SPX Graphics Controller]] uses a JSON [[Documentation/Server/Configurations|configuration]] file to store settings such as folder paths, playout server settings, and user interface language options. Most settings can be changed from the web-based configuration page.
---
## Configuration File
The default configuration file is `config.json`, but you can run the server with a specific configuration file:
```sh
node server.js myOtherConfig.json
```
> [!warning] The server will fail to start if config is not valid JSON. You can use [JSONLint](https://jsonlint.com/) to validate JSON data.
## Configuration Methods
### Web-Based Configuration (Recommended)
Most settings can be changed from the Configuration page in the SPX web interface:
![[Pasted image 20260129104809.png]]
### Manual Configuration
Some rarely used settings are left out from the configuration page and can be changed by manually modifying the config file in a text editor.
> [!warning] The SPX server process must be restarted whenever changes are made to the configuration file.
## Configuration Sections
- [[Documentation/Server/Configurations|General Settings]] - Basic application settings
- [[Documentation/Renderer/Workflows/CasparCG - AMCP|CasparCG Setup]] - Configure CasparCG servers
- [[Documentation/Renderer/Web Render|Renderer Parameters]] - Renderer URL parameters
## Example Configuration
```json
{
"general": {
"username": "admin",
"password": "",
"hostname": "My main machine",
"langfile": "english.json",
"loglevel": "info",
"logfolder": "X:/SPX/LOG/",
"port": "5656",
"dataroot": "X:/SPX/DATAROOT/",
"templatesource": "spx-ip-address",
"preview": "selected",
"renderer": "normal",
"resolution": "HD",
"launchBrowser": false,
"disableConfigUI": true,
"apikey": "",
"disableLocalRenderer": false,
"disableSeveralControllersWarning": false
},
"casparcg": {
"servers": [
{
"name": "OVERLAY",
"host": "localhost",
"port": "5250"
},
{
"name": "VIDEOWALL",
"host": "128.120.110.1",
"port": "5250"
}
]
},
"globalExtras": {
"customscript": "/ExtraFunctions/demoFunctions.js"
}
}
```
## Configuration Generation
The application **DOES NOT** come with `config.json` and it will be generated at server startup with default values. You can then modify it through the web interface or manually.
---
## Read Next
- [[Documentation/Server/Configurations|Server Configurations]] - Detailed explanation of general settings
- [[Documentation/Renderer/Workflows/CasparCG - AMCP|CasparCG Setup]] - Configure CasparCG servers
- [[Documentation/Renderer/Web Render|Renderer Parameters]] - Advanced renderer options
- [[Guides/Getting Started/First Launch|First Launch]] - Initial setup guide