Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Funkwhaleのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Funkwhale
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:メディアサーバー]] [[Category:音楽]] [[Category:ウェブアプリケーション]] [[en:Funkwhale]] {{Related articles start}} {{Related|Django}} {{Related|Apache HTTP Server}} {{Related|Nginx}} {{Related|OpenSSL}} {{Related|Certbot}} {{Related|Redis}} {{Related|PostgreSQL}} {{Related articles end}} [https://docs.funkwhale.audio/index.html メインドキュメントページ]: から引用 :[https://funkwhale.audio/ Funkwhale] is a self-hosted, modern, free and open-source music server, heavily inspired by Grooveshark. インスタンスは ActivityPub プロトコルで連携できます。 == インストール == Funkwhale にはリバースプロキシ ([https://docs.funkwhale.audio/installation/index.html]) が必要です。 したがって、[[nginx]] または [[Apache HTTP Server]] をインストールする必要があります。 また、設定された [[PostgreSQL]] データベースと [[Redis]] キャッシュサーバーも必要です。 詳細については、[[Funkwhale#設定]] およびそれぞれのページを参照してください。 === AUR からのインストール === {{AUR|funkwhale}} パッケージを [[インストール]] して下さい。 {{warning|このインストールでは Python virtualenv を使用しないため、すべての Python 依存関係は主に AUR からシステム全体にインストールされます。パッケージのバージョンが上流の要件と異なる場合があり、問題が発生する可能性があります。}} === 手動インストール === [https://docs.funkwhale.audio/installation/debian.html] にある Arch のインストール手順に従ってください。 これにより、すべてのコンポーネントが {{ic|/srv/funkwhale}} にインストールされます。 === Docker のインストール === [https://docs.funkwhale.audio/installation/docker.html] にある Docker のインストール手順に従ってください。 == Configuration == The following sections assume that Funkwhale was installed from AUR, for a manual installation the folders should be changed appropriately. It also assumes that you are using Funkwhale on a local network. See the official [https://docs.funkwhale.audio/index.html documentation] for making it accessible outside, especially for the certificates using [[Certbot]]. === Host config === Make sure your {{ic|/etc/hosts}} file is setup correctly. The Funkwhale server is running on {{ic|127.0.0.1}} with alias {{ic|funkwhale.local}}, but this can be changed. Your {{ic|/etc/hosts}} file should look something like the following, {{bc|#<ip-address> <hostname.domain.org> <hostname> 127.0.0.1 localhost ::1 localhost 127.0.0.1 funkwhale.local}} === Configure nginx === The upstream template of the Nginx configuration file is provided in {{ic|/etc/webapps/funkwhale/nginx.template}}. However, this file contains variables that need to be replaced by their value from the {{ic|env}} file (see section [[#Initialization]] on how to create this file): $ set -a && source /srv/funkwhale/config/env && set +a $ envsubst "`env | awk -F = '{printf \" $%s\", $$1}'`" \ < /etc/webapps/funkwhale/nginx.conf \ > /etc/nginx/sites-available/funkwhale.conf The paths to the certificates should also be modified accordingly. Then enable the site: $ ln -s /etc/nginx/sites-available/funkwhale.conf /etc/nginx/sites-enabled/ And [[start]] the {{ic|nginx.service}}. === Configure apache === {{note|You will need [[Apache HTTP Server]] configured to run with [[Redis]], [[PostgreSQL]] and Apache [[TLS]] support.}} A template Apache configuration file is provided in {{ic|/etc/webapps/funkwhale/apache-funkwhale.conf}}. It configures the Funkwhale instance to be accessible at {{ic|https://funkwhale.local}}. The folder names should be change to fit your installation. More explanation on which lines need to be modified is provided in [https://docs.funkwhale.audio/installation/index.html#reverse-proxy-setup]. Copy the template to the apache configuration folder, $ cp /etc/webapps/funkwhale/apache-funkwhale.conf /etc/httpd/conf/extra/funkwhale.conf Next, edit the [[Apache HTTP Server]] configuration file and add the following: {{hc|# /etc/httpd/conf/httpd.conf| Include conf/extra/funkwhale.conf }} For the changes to be applied, you need to restart {{ic|httpd.service}} (Apache) using [[systemd#Using units|systemd]]. === Configure PostgreSQL === Here we follow the official documentation: [https://docs.funkwhale.audio/installation/external_dependencies.html] Connect to the [[PostgreSQL]] command line using the {{ic|postgres}} user to create the {{ic|funkwhale}} user and the database. {{hc|$ sudo -u postgres psql|2= CREATE DATABASE "funkwhale" WITH ENCODING 'utf8'; CREATE USER funkwhale; GRANT ALL PRIVILEGES ON DATABASE funkwhale TO funkwhale; \c funkwhale; CREATE EXTENSION "unaccent"; CREATE EXTENSION "citext"; }} The last three lines load the {{ic|unaccent}} and {{ic|citext}} extensions, which are needed for funkwhale to work ({{ic|citext}} since version 0.20). == Initialization == === Funkwhale user === Funkwhale should be run as the {{ic|funkwhale}} user. It is automatically created by the AUR package. If you followed the manual installation, create it with $ useradd -r -d /srv/funkwhale -m funkwhale -c "Funkwhale music server -s /sbin/nologin" Create Funkwhale's data folders in {{ic|/srv/funkwhale}}, owned by the {{ic|funkwhale}} user: $ mkdir /srv/funkwhale $ chown funkwhale:funkwhale /srv/funkwhale Run the following commands as the {{ic|funkwhale}} user. Create sub-folders for api files and storage. {{hc|$ sudo -u funkwhale -H bash|2= [funkwhale]$ cd /srv/funkwhale [funkwhale]$ mkdir -p api data/static data/media data/music config }} To work, Funkwhale needs several environment variables to be present, these should be defined in the environment file {{ic|/srv/funkwhale/config/env}}. There is a template at {{ic|/etc/webapps/funkwhale/env.template}}, copy and modify it to fit your installation. [funkwhale]$ cp /etc/webapps/funkwhale/env.template /srv/funkwhale/config/env The {{ic|FUNKWHALE_HOSTNAME}} variable should correspond to the hostname in {{ic|/etc/hosts}}. {{ic|DJANGO_ALLOWED_HOSTS}} needs also to match the address where the funkwhale instance will be reached. You should generate a unique {{ic|DJANGO_SECRET_KEY}} and change the paths accordingly to your installation. {{Tip|As you will need to run several commands as the {{ic|funkwhale}} user with the environment variables loaded, you can use the following command-line after logging in: {{ic|[funkwhale]$ export $(cat /srv/funkwhale/config/env {{!}} grep -v ^# {{!}} xargs)}} For convenience, you can copy this line to /srv/funkwhale/.bashrc (or whichever shell you are using), so it is loaded automatically everytime you log in to the funkwhale user. }} === Database setup === Initialize the database before launching the application: {{hc|$ sudo -u funkwhale -H bash|2= [funkwhale]$ python /usr/share/webapps/funkwhale/api/manage.py migrate }} Create a superuser for your Funkwhale instance: [funkwhale]$ python /usr/share/webapps/funkwhale/api/manage.py createsuperuser Collect the static files for the webapp: [funkwhale]$ python /usr/share/webapps/funkwhale/api/manage.py collectstatic {{note|Starting with version 0.21, an alias is provided for {{ic|/usr/share/webapps/funkwhale/api/manage.py}} in {{ic|/usr/bin/funkwhale_manage}}, so you can instead use: [funkwhale]$ funkwhale_manage collectstatic }} == Version upgrade == {{note|Starting with version 0.21, an alias is provided for {{ic|/usr/share/webapps/funkwhale/api/manage.py}} in {{ic|/usr/bin/funkwhale_manage}}, so you can use: [funkwhale]$ funkwhale_manage [commands...] instead of [funkwhale]$ python /usr/share/webapps/funkwhale/api/manage.py [commands...] }} All commands should be entered as {{ic|funkwhale}} [[#Funkwhale user|user]]. [[Stop]] the {{ic|funkwhale.service}} before upgrading. The static files have to be collected again: [funkwhale]$ funkwhale_manage collectstatic --no-input Apply database migrations: [funkwhale]$ funkwhale_manage migrate To upgrade to version 1.0, the thumbnails quality has been increased from 70 to 95, so all the thumbnails should be regenerated (or set THUMBNAIL_JPEG_RESIZE_QUALITY=70 in the .env file so nothing changes). First delete the {{ic|__sized__ directory}} in your {{ic|MEDIA_ROOT}} directory, then regenerate the thumbnails, [funkwhale]$ rm -rf /srv/funkwhale/data/media/__sized__ [funkwhale]$ funkwhale_manage fw media generate-thumbnails Starting from version 0.20.1, there is a new {{ic|MUSIC_USE_DENORMALIZATION}} parameter in the {{ic|env}} file set to {{ic|True}} (you can set it to {{ic|False}} so nothing changes). It is a performance enhancement and to make it work you need to run the following command, [funkwhale]$ python /usr/share/webapps/funkwhale/api/manage.py rebuild_music_permissions {{warning|Check that the apache or nginx configuration file did not change before restarting the service. Consult the official documentation for incompatible changes.}} {{warning|From version 0.20, {{AUR|python-daphne}} was replaced by {{Pkg|uvicorn}}/{{Pkg|gunicorn}}. The service file was updated not to use {{AUR|python-daphne}} anymore. This can be changed by editing the {{ic|funkwhale-server.service}} file. Also, the {{ic|citext}} extension for postgresql is now needed. It can be loaded with issueing the following command before calling the {{ic|migrate}} command: {{bc|$ sudo -u postgres psql funkwhale -c 'CREATE EXTENSION "citext";'}} }} After completing all these steps, the {{ic|funkwhale.service}} can be [[started]] again. {{Note|All the instructions for upgrading are given on the official documentation [https://docs.funkwhale.audio/upgrading/index.html].}} == Usage == Upstream provides systemd services that are already installed with the AUR package. To start the instance, just [[start]] {{ic|funkwhale.service}}. This starts three services, you can check their status with: $ systemctl status funkwhale-\* == Troubleshooting == See https://docs.funkwhale.audio/admin/troubleshooting.html === Proxy logs === Apache logs for funkwhale: $ tail -f /var/log/httpd/funkwhale/error.log
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Bc
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:META Related articles start
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Related
(
ソースを閲覧
)
テンプレート:Related articles end
(
ソースを閲覧
)
テンプレート:Related articles start
(
ソースを閲覧
)
テンプレート:Tip
(
ソースを閲覧
)
テンプレート:Warning
(
ソースを閲覧
)
Funkwhale
に戻る。
検索
検索
Funkwhaleのソースを表示
話題を追加