pull/948/merge
thibaut1304 2025-07-02 13:04:41 +02:00 committed by GitHub
commit 3f7380719a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 5 deletions

View File

@ -706,11 +706,14 @@ for transcoding on your Tdarr instance as well as the number of errored items.
This service displays a version string instead of a subtitle. Example configuration:
```yaml
- name: Traefik
type: Traefik
logo: assets/tools/sample.png
url: http://traefik.example.com
- name: "Traefik"
type: "Traefik"
logo: "assets/tools/sample.png"
url: "http://traefik.example.com"
basic_auth: "admin:password"
```
- Authentication: If BasicAuth is set, credentials will be encoded in Base64 and sent as an Authorization header (Basic <encoded_value>).
- Format: The value must be formatted as "admin:password".
## Truenas Scale

View File

@ -42,7 +42,12 @@ export default {
},
methods: {
fetchStatus: async function () {
this.fetch("/api/version")
let headers = {};
if (this.item.basic_auth) {
const encodedCredentials = btoa(this.item.basic_auth);
headers["Authorization"] = `Basic ${encodedCredentials}`;
}
this.fetch("/api/version", { headers })
.then((response) => {
this.fetchOk = true;
this.versionstring = response.Version;