mirror of
https://github.com/tubearchivist/docs.git
synced 2025-08-04 15:08:17 +00:00
Merge branch 'master' into release-v0.5.5
This commit is contained in:
commit
06b43a36f7
@ -126,24 +126,4 @@ Then you can restart the container and the migration will run again. If your err
|
||||
|
||||
This project strives for timely updates when yt-dlp makes a new release, but sometimes ideals meet reality. Also, sometimes yt-dlp has a fix published, but not yet released.
|
||||
|
||||
**Build your own image**: Update the version in `requirements.txt` and rebuild the image from `Dockerfile`. This will use your own image, even on container rebuild.
|
||||
|
||||
**Update yt-dlp on its own**: You can also update the yt-dlp library alone in the container.
|
||||
|
||||
- Restart your container for changes to take effect.
|
||||
- These changes won't persist a container rebuild from image.
|
||||
|
||||
Update to newest regular yt-dlp release:
|
||||
|
||||
```bash
|
||||
pip install --upgrade yt-dlp
|
||||
```
|
||||
|
||||
To update to nightly you'll have to specify the correct `--target` folder:
|
||||
```bash
|
||||
pip install \
|
||||
--upgrade \
|
||||
--target=/root/.local/bin \
|
||||
https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
|
||||
```
|
||||
This is obviously particularly likely to create problems. Also note that the `--version` command will only show the latest regular release, not a nightly version mentioned.
|
||||
To update, set the [TA_AUTO_UPDATE_YTDLP](installation/env-vars.md#ta_auto_update_ytdlp) environment variable and restart your container. If this makes things worse and you wish to undo the update, unset the variable and recreate your container.
|
||||
|
@ -14,7 +14,7 @@ Note that this automatically creates new users in the database if they do not al
|
||||
| :-------------------- | :-------- | :-------- | :------------ |
|
||||
| `TA_LOGIN_AUTH_MODE` | `single` | `forwardauth` | Selects authentication backends. See potential values below. Overrides `TA_LDAP`/`TA_ENABLE_AUTH_PROXY`. |
|
||||
| `TA_ENABLE_AUTH_PROXY` | `null` | `true` | *deprecated* (see below) Set to anything besides empty string to use forward proxy authentication. |
|
||||
| `TA_AUTH_PROXY_USERNAME_HEADER`| `null` | `HTTP_REMOTE_USER` | The name of the request header that the auth proxy passes to the proxied application (**Tube Archivist** in this case), so that the application can identify the user. The format of this variable's value can vary depending on the specific header and version of Tube Archivist used.[^1] Check the documentation of your auth proxy for how to configure the forwarding of header.[^2] |
|
||||
| `TA_AUTH_PROXY_USERNAME_HEADER`| `HTTP_REMOTE_USER` | `X-MYPROXY-USER` | The name of the request header that the auth proxy passes to the proxied application (**Tube Archivist** in this case), so that the application can identify the user. The format of this variable's value can vary depending on the specific header and version of Tube Archivist used.[^1] Check the documentation of your auth proxy for how to configure the forwarding of header.[^2] |
|
||||
| `TA_AUTH_PROXY_LOGOUT_URL` | `null` | | The URL that **Tube Archivist** should redirect to after a logout. By default, the logout redirects to the login URL, which means the user will be automatically authenticated again. Instead, you might want to configure the logout URL of the auth proxy here. |
|
||||
|
||||
[^1]:
|
||||
@ -24,18 +24,18 @@ Note that this automatically creates new users in the database if they do not al
|
||||
|
||||
[^2]:
|
||||
For Authentik behind NPM Proxy Manager:
|
||||
|
||||
|
||||
1. Set the 'TA_AUTH_PROXY_USERNAME_HEADER' TO:
|
||||
- `TA_AUTH_PROXY_USERNAME_HEADER=X_AUTHENTIK_USERNAME` (without the HTTP_ prefix, unless using an older version of Tube Archivist, see above)
|
||||
|
||||
2. In NPM Proxy Manager in the advance tab of your Proxy host modify the default sections of the setup script that was pulled from your proxy provider that starts with: '# This section should be uncommented when the "Send HTTP Basic authentication" option is
|
||||
2. In NPM Proxy Manager in the advance tab of your Proxy host modify the default sections of the setup script that was pulled from your proxy provider that starts with: '# This section should be uncommented when the "Send HTTP Basic authentication" option is
|
||||
enabled in the proxy provider' with the following:
|
||||
|
||||
THIS:
|
||||
# auth_request_set $authentik_auth $upstream_http_authorization;
|
||||
# proxy_set_header Authorization $authentik_auth;
|
||||
|
||||
BECOMES THIS:
|
||||
|
||||
BECOMES THIS:
|
||||
# auth_request_set $authentik_username $upstream_http_x_authentik_username;
|
||||
# proxy_set_header X-Authentik-Username $authentik_username;
|
||||
|
||||
|
@ -14,6 +14,8 @@ You can enable and configure LDAP with the following environment variables:
|
||||
| `TA_LDAP_USER_ATTR_MAP_EMAIL` | `mail` |`mail` | Bind attribute used to match LDAP user's EMail address |
|
||||
| `TA_LDAP_USER_BASE` | `null` | `ou=users,dc=your-server` | Search base for user filter. |
|
||||
| `TA_LDAP_USER_FILTER` | `null` | `(objectClass=user)` | Filter for valid users. Login usernames are matched using the attribute specified in `TA_LDAP_USER_ATTR_MAP_USERNAME` and should not be specified in this filter. |
|
||||
| `TA_LDAP_PROMOTE_USERNAMES_TO_SUPERUSER` | `null` | `alice,bob` | Comma separated list of users (matched based on TA_LDAP_USER_ATTR_MAP_USERNAME) which will automatically be promoted to superuser when they login. Users given superuser access will also be given staff permissions. |
|
||||
| `TA_LDAP_PROMOTE_USERNAMES_TO_STAFF` | `null` | `lisa,tom` | Comma separated list of users (matched based on TA_LDAP_USER_ATTR_MAP_USERNAME) which will automatically be promoted to staff when they login. |
|
||||
|
||||
## Auth Login Modes
|
||||
|
||||
@ -37,7 +39,11 @@ For installations which require secure enforcement of LDAP-only credentials, use
|
||||
|
||||
LDAP modes automatically create new users in the database if they do not already exist.
|
||||
|
||||
If those accounts are successfully authenticated using this method, they will not have administrative rights to the Dashboard (including ability to add downloads). To fix this, the preferred method is to switch to `ldap_local` and add privileges as described in the next section.
|
||||
If those accounts are successfully authenticated using this method, they will not have administrative rights to the Dashboard (including ability to add downloads). There are two options for providing LDAP users permissions for downloading videos or performing user administration:
|
||||
- Use `ldap_local` mode and add privileges as described in the next section.
|
||||
- Use `TA_LDAP_PROMOTE_USERNAMES_TO_SUPERUSER` and `TA_LDAP_PROMOTE_USERNAMES_TO_STAFF` to configure TA to promote known usernames to have additional privileges when they first login.
|
||||
|
||||
The `TA_LDAP_PROMOTE_USERNAMES_*` settings are based on the username matched in the `TA_LDAP_USER_ATTR_MAP_USERNAME` setting. Some configurations may allow a user to login with multiple alternative "usernames" based on LDAP attributes, but only the matched username will be promoted.
|
||||
|
||||
### LDAP + Local Considerations
|
||||
|
||||
|
@ -81,6 +81,14 @@ Configure TA to authenticate with a auth proxy. See [configuration/forward-auth]
|
||||
<span class="tag-neutral">Type: Boolean</span>
|
||||
Configure TA to use LDAP for authentication. See [configuration/ldap](../configuration/ldap.md) for more details.
|
||||
|
||||
## TA_AUTO_UPDATE_YTDLP
|
||||
<span class="tag-optional">Optional</span>
|
||||
<span class="tag-neutral">Type: String</span>
|
||||
Configure TA to automatically install the latest yt-dlp on container start. Enable by setting to `release` or `nightly` depending on which version you would like to install.
|
||||
|
||||
!!! warning "Potential Incompatibility"
|
||||
Future versions of yt-dlp may not be compatible with your current Tube Archivist version. If you encounter errors while downloading, remove the value and recreate your container to restore the default version.
|
||||
|
||||
## DISABLE_STATIC_AUTH
|
||||
<span class="tag-optional">Optional</span>
|
||||
<span class="tag-neutral">Type: Boolean</span>
|
||||
|
@ -65,7 +65,7 @@ Clicking the play button on the thumbnail will open the in-place player at the t
|
||||
|
||||
Narrow down your search with these secondary keywords:
|
||||
|
||||
- `lang`: Search for matches only within a language. Use the same two letter ISO country code as you have set on the settings page.
|
||||
- `lang`: Search for matches only within a language. Use the same two letter ISO 639 language code as you have set on the settings page.
|
||||
- `source`: Can either be *auto* to search through auto generated subtitles only or *user* to search through user uploaded subtitles only.
|
||||
|
||||
**Example**:
|
||||
|
@ -68,7 +68,7 @@ If the video you are trying to import is not available on YouTube any more, **Tu
|
||||
|
||||
- The file `<base-name>.info.json` is required to extract the required information.
|
||||
- Add the thumbnail as `<base-name>.<ext>`, where valid file extensions are *.jpg*, *.png* or *.webp*. If there is no thumbnail file, **Tube Archivist** will try to extract the embedded cover from the media file or will fallback to a default thumbnail.
|
||||
- Add subtitles as `<base-name>.<lang>.vtt` where *lang* is the two letter ISO country code. This will archive all subtitle files you add to the import folder, independent from your configurations. Subtitles can be archived and used in the player, but they can't be indexed or made searchable due to the fact, that they have a very different structure than the subtitles as **Tube Archivist** needs them.
|
||||
- Add subtitles as `<base-name>.<lang>.vtt` where *lang* is the appropriate two letter ISO 639 language code. This will archive all subtitle files you add to the import folder, independent from your configurations. Subtitles can be archived and used in the player, but they can't be indexed or made searchable due to the fact, that they have a very different structure than the subtitles as **Tube Archivist** needs them.
|
||||
- For videos, where the whole channel is not available any more, TA will extract as much info as possible from the info json file.
|
||||
|
||||
### Some notes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user