From 171989871f6a262c557d3dd45040f4d877496eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian-Samuel=20Geb=C3=BChr?= Date: Sun, 2 Apr 2023 19:41:22 +0200 Subject: [PATCH] Move docs, add user creation --- docs/{ => services}/funkwhale.md | 37 ++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) rename docs/{ => services}/funkwhale.md (96%) diff --git a/docs/funkwhale.md b/docs/services/funkwhale.md similarity index 96% rename from docs/funkwhale.md rename to docs/services/funkwhale.md index 8ab5708..95378d7 100644 --- a/docs/funkwhale.md +++ b/docs/services/funkwhale.md @@ -1,4 +1,4 @@ -# funkwhale +# Funkwhale [Funkwhale](funkwhale.audio/) is a community-driven project that lets you listen and share music and audio within a decentralized, open network. @@ -22,11 +22,16 @@ To enable this service, add the following configuration to your `vars.yml` file # funkwhale # # # ######################################################################## + funkwhale_enabled: true + funkwhale_hostname: mash.example.com + # Put a strong secret below, generated with `pwgen -s 64 1` or in another way funkwhale_django_secret_key: '' + # Redis configuration, as described below + ######################################################################## # # # /funkwhale # @@ -50,26 +55,35 @@ To install a single (non-dedicated) Redis instance (`mash-redis`) and hook funkw # redis # # # ######################################################################## + redis_enabled: true + ######################################################################## # # # /redis # # # ######################################################################## + + ######################################################################## # # # funkwhale # # # ######################################################################## + # Base configuration as shown above + # Point funkwhale to the shared Redis instance funkwhale_config_redis_hostname: "{{ redis_identifier }}" + # Make sure the funkwhale service (mash-funkwhale.service) starts after the shared Redis service (mash-redis.service) funkwhale_systemd_required_services_list_custom: - "{{ redis_identifier }}.service" + # Make sure the funkwhale container is connected to the container network of the shared Redis service (mash-redis) funkwhale_container_additional_networks_custom: - "{{ redis_identifier }}" + ######################################################################## # # # /funkwhale # @@ -94,28 +108,36 @@ Then, create a new `vars.yml` file for the ```yaml --- + ######################################################################## # # # Playbook # # # ######################################################################## + # Put a strong secret below, generated with `pwgen -s 64 1` or in another way # Various other secrets will be derived from this secret automatically. mash_playbook_generic_secret_key: '' + # Override service names and directory path prefixes mash_playbook_service_identifier_prefix: 'mash-funkwhale-' mash_playbook_service_base_directory_name_prefix: 'funkwhale-' + ######################################################################## # # # /Playbook # # # ######################################################################## + + ######################################################################## # # # redis # # # ######################################################################## + redis_enabled: true + ######################################################################## # # # /redis # @@ -133,16 +155,22 @@ Then, adjust your main inventory host's variables file (`inventory/host_vars/fun # funkwhale # # # ######################################################################## + # Base configuration as shown above + + # Point funkwhale to its dedicated Redis instance funkwhale_environment_variable_redis_host: mash-funkwhale-redis funkwhale_environment_variable_redis_cache_host: mash-funkwhale-redis + # Make sure the funkwhale service (mash-funkwhale.service) starts after its dedicated Redis service (mash-funkwhale-redis.service) funkwhale_systemd_required_services_list_custom: - "mash-funkwhale-redis.service" + # Make sure the funkwhale container is connected to the container network of its dedicated Redis service (mash-funkwhale-redis) funkwhale_container_additional_networks_custom: - "mash-funkwhale-redis" + ######################################################################## # # # /funkwhale # @@ -158,4 +186,9 @@ If you've decided to install a dedicated Redis instance for funkwhale, make sure ## Usage -After installation, you can go to the funkwhale URL, as defined in `funkwhale_hostname`. \ No newline at end of file +After installation, you can go to the funkwhale URL, as defined in `funkwhale_hostname`. To login and get started you first have to create a user. You need to log onto your server and execute +```bash +docker exec -it mash-funkwhale-api funkwhale-manage createsuperuser --username USERNAME --email YOURNAME@invalid.org +``` + +All other users can be created in the Web GUI.