From 73aa8284554f3a466c3899866bdd4632306abf33 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sun, 20 Sep 2026 12:53:19 -0400 Subject: [PATCH] Add secret-free config template for fresh clones --- .env.example | 4 ++- config/mopidy.conf.example | 60 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 config/mopidy.conf.example diff --git a/.env.example b/.env.example index c7d6dc7..0ac663a 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,7 @@ # Copy to .env and adjust per instance. Give every clone a unique -# COMPOSE_PROJECT_NAME and a unique set of ports. +# COMPOSE_PROJECT_NAME and a unique set of ports. In a fresh clone also run: +# mkdir -p config music +# cp config/mopidy.conf.example config/mopidy.conf # Namespaces the named volumes (mopidy-data, mopidy-cache). COMPOSE_PROJECT_NAME=mopidy diff --git a/config/mopidy.conf.example b/config/mopidy.conf.example new file mode 100644 index 0000000..595aa86 --- /dev/null +++ b/config/mopidy.conf.example @@ -0,0 +1,60 @@ +[core] +config_dir = ~/config +restore_state = true + +[file] +enabled = true +media_dirs = /var/lib/mopidy/media +follow_symlinks = true + +[local] +enabled = true + +[logging] +verbosity = 0 +color = true + +[http] +enabled = true +hostname = 0.0.0.0 +port = 6680 +static_dir = +zeroconf = Mopidy HTTP server on $hostname +allowed_origins = +csrf_protection = true + +[stream] +enabled = true +protocols = + http + https + mms + rtmp + rtmps + rtsp +timeout = 5000 +metadata_blacklist = + +# Get this account's API credentials at https://mopidy.com/ext/spotify/, +# then generate the playback credentials blob with: +# scripts/refresh-spotify-creds.py +[spotify] +enabled = true +client_id = +client_secret = + +[bandcamp] +enabled = false +#identity = + +#soundcloud +#enabled = true + +[webhooks] +enabled = true +urls = +tokens = + +[audio] +# Example output to a Snapcast TCP stream; adjust host/port per instance. +output = audioresample ! rgvolume ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! tcpclientsink host=snapcast.service port=4006 async=False