Accessing Configuration
Web UI (Recommended)
The easiest way to configure Sunshine is through the web interface:- Open your web browser
- Navigate to
https://localhost:47990 - Log in with your credentials
- Browse the configuration sections in the UI
Configuration Files
For advanced users, Sunshine can be configured by editing configuration files directly. The configuration file is located in different directories depending on your operating system:| Operating System | Configuration Directory |
|---|---|
| Docker | /config |
| FreeBSD | ~/.config/sunshine |
| Linux | ~/.config/sunshine |
| macOS | ~/.config/sunshine |
| Windows | %ProgramFiles%\Sunshine\config |
sunshine.conf in this directory.
Custom Configuration Path
You can specify a custom configuration file location by passing the full path as the first argument when starting Sunshine:Application Configuration
Applications that can be launched from Moonlight are configured separately inapps.json, which is stored in the same directory as the configuration file by default. You can customize this location in the main configuration file.
Configuration Sections
Sunshine’s configuration is organized into several categories:General Settings
Locale, logging, credentials, and system tray options
Audio/Video
Encoder selection, resolution, bitrate, and HDR settings
Input Configuration
Gamepad emulation, keyboard, and mouse settings
Network Settings
Port configuration, UPnP, and encryption settings
Applications
Configure applications and games to stream
Editing Configuration Files
If you choose to edit configuration files manually:- Stop Sunshine before making changes
- Open
sunshine.confin a text editor - Edit the desired options using the format:
option_name = value - Save the file
- Restart Sunshine for changes to take effect
Configuration File Locations
Main Configuration Files
Main configuration file containing all Sunshine settings
Application definitions for games and programs that can be launched from Moonlight
Current state and user credentials for the web UI
Log Files
Main log file for troubleshooting and debugging
SSL Certificates
Located in thecredentials subdirectory:
Private key for web UI and Moonlight pairing (RSA-2048 recommended)
Certificate for web UI and Moonlight pairing
Next Steps
General Settings
Configure locale, logging, and system settings
Audio/Video
Optimize encoding settings for your hardware

