Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
services:bazarr [2024/09/10 19:06] – willy | services:bazarr [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Bazarr: subtitles downloader & finder ====== | ||
- | |||
- | [[https:// | ||
- | |||
- | ===== Installation ===== | ||
- | |||
- | There are a couple of Bazarr docker images but they don't play well with users and permissions, | ||
- | |||
- | As usual, you need to create a specific user and set it's home folder to **/ | ||
- | <code bash> | ||
- | useradd -d / | ||
- | su - bazarr | ||
- | mkdir bazarr | ||
- | cd bazarr | ||
- | wget https:// | ||
- | unzip bazarr.zip | ||
- | </ | ||
- | |||
- | Since the zip is a bit messy (all files on root zip folder) i prefer to put it into a subfolder. | ||
- | |||
- | Now you need to enable PIP user support (see [[gentoo: | ||
- | |||
- | Now install the requirements: | ||
- | <code bash> | ||
- | su - bazarr | ||
- | cd bazarr | ||
- | pip install -r requirements.txt | ||
- | </ | ||
- | |||
- | That's it, Bazarr is installed, but you will need to configure it before starting. | ||
- | |||
- | Edit the default **/ | ||
- | < | ||
- | ... | ||
- | base_url: /bazarr | ||
- | chmod: ' | ||
- | ip: 127.0.0.1 | ||
- | ... | ||
- | </ | ||
- | |||
- | If the file is missing, start bazar once then stop it. | ||
- | |||
- | You need to set the base_url to match the reverse proxy setting and you want to ensure new files by Bazarr are created as readable and writable by the media group (so, 0664) for them to be accessible in your media collection. You also want to bind to IP 127.0.0.1 for security reasons. | ||
- | |||
- | |||
- | ===== Reverse-Proxy configuration ===== | ||
- | |||
- | Before you proceed, you should make Bazarr accessible via the reverse-proxy, | ||
- | <file txt bazarr.conf> | ||
- | location /bazarr/ { | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | # Allow the Bazarr API through if you enable Auth on the block above | ||
- | | ||
- | | ||
- | | ||
- | } | ||
- | } | ||
- | </ | ||
- | |||
- | As usual the [[selfhost: | ||
- | |||
- | ===== Automatic Startup ===== | ||
- | |||
- | Drop the following init script in **/ | ||
- | <file - bazarr> | ||
- | # | ||
- | # Copyright 1999-2021 Gentoo Authors | ||
- | # Distributed under the terms of the GNU General Public License v2 | ||
- | |||
- | description=" | ||
- | pidfile="/ | ||
- | command_background=true | ||
- | command="/ | ||
- | command_args="/ | ||
- | command_user=" | ||
- | |||
- | depend() { | ||
- | need net localmount | ||
- | } | ||
- | </ | ||
- | |||
- | Make it executable, add to default runlevel and start it now: | ||
- | <code bash> | ||
- | chmod +x / | ||
- | rc-update add bazarr default | ||
- | / | ||
- | </ | ||
- | |||
- | and you are all set. | ||
- | |||
- | ===== Usage ===== | ||
- | |||
- | Now you can head to the Bazarr URL (https:// | ||
- | |||
- | Then it's time to setup some providers: you can do so from the Providers configuration page. You will need at least one. | ||
- | |||
- | Go ahead and continue configuring anything else you might want to setup. | ||
- | |||
- | All set! Bazarr is running. | ||
- | |||