Get started

config_user.php options

Every constant in the config file and what flipping it does

Some behaviors can be changed by defining new constants in ~RKHM/api/app/config_user.php

Some of the defined constants can be changed within RKHM's admin-area ( like private/public state of app, session setting and etc ). These constants are excluded from the list. Only constants that are manually changable are mentioned in this list

Constant nameDescriptionExpected valuesDefault value
assign_language_based_on_ip_locationRKHM can automatically select language from the added languages for users based on their geographic locationBooleantrue
bof_cache_entire_pageIN BETA. RKHM can cache entire pages instead of caching widgets separately to improve load speed for content-heavy pagesBooleanfalse
bof_cache_rangeWhen bof_cache_entire_page is enabled, sets the cache duration in minutes. The default value is 10 minutesInt10
cf_cacheEnable workaround for Cloudflare and other server-side caching systemsBooleanfalse
id3_write_coverRKHM can write uploaded cover images to MP3 files' ID3 tags during uploadsBooleantrue
music_hide_single_albumsIN BETA. Every track has to belong to an album. Even single tracks. You can however 'hide' all traces of 'single albums'Booleanfalse
music_artist_top_tracks_moreForce-enable "More" button in "Top Tracks" widget (disabled by default due to conflicts with Spotify Full Automation). Only enable if you have sufficient tracks in your databaseBooleanfalse
disable_music_genre_hiearchyDisable music genre hierarchy support to improve performance (hierarchy features require additional database queries)Booleanfalse
spotify_playlist_user_idUser ID for imported Spotify playlists (default: 1 = admin). Set to 0 to disable playlist ownershipInt1
player_playlist_rangeIN BETA. Number of playlist items initially loaded into queue ( higher values may slow loading, especially on high-traffic sites ). Remaining items load gradually via "Infinite" featureInt40
allow_music_tracks_dupsIN BETA. By default, the system prevents users from uploading tracks with identical artistName, albumName, and trackName combinations. You can disable this restriction to allow duplicate track names if neededBooleanfalse
music_artist_top_tracks_awfFirst read this article and enable AWF. Turns "top tracks" widget from "table" to "slider with waveform"Booleanfalse