Skip to content

Commit 01edc6c

Browse files
committed
chore: prepare for v2.6.1
2 parents 51ac65a + 9cb7e14 commit 01edc6c

File tree

24 files changed

+194
-91
lines changed

24 files changed

+194
-91
lines changed

charts/jellyseerr-chart/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ kubeVersion: ">=1.23.0-0"
33
name: jellyseerr-chart
44
description: Jellyseerr helm chart for Kubernetes
55
type: application
6-
version: 2.4.0
7-
appVersion: "2.5.2"
6+
version: 2.5.0
7+
appVersion: "2.6.0"
88
maintainers:
99
- name: Jellyseerr
1010
url: https://github.com/Fallenbagel/jellyseerr

charts/jellyseerr-chart/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# jellyseerr-chart
22

3-
![Version: 2.4.0](https://img.shields.io/badge/Version-2.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.5.2](https://img.shields.io/badge/AppVersion-2.5.2-informational?style=flat-square)
3+
![Version: 2.5.0](https://img.shields.io/badge/Version-2.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.0](https://img.shields.io/badge/AppVersion-2.6.0-informational?style=flat-square)
44

55
Jellyseerr helm chart for Kubernetes
66

docs/troubleshooting.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ In some places (like China), the ISP blocks not only the DNS resolution but also
105105

106106
You can configure Jellyseerr to use a proxy with the [HTTP(S) Proxy](/using-jellyseerr/settings/general#https-proxy) setting.
107107

108+
### Option 3: Force IPV4 resolution first
109+
110+
Sometimes there are configuration issues with IPV6 that prevent the hostname resolution from working correctly.
111+
112+
You can try to force the resolution to use IPV4 first by going to `Settings > Networking > Advanced Networking` and enabling `Force IPv4 Resolution First` setting and restarting Jellyseerr.
113+
108114
### Option 4: Check that your server can reach TMDB API
109115

110116
Make sure that your server can reach the TMDB API by running the following command:

jellyseerr-api.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4107,7 +4107,7 @@ paths:
41074107
type: string
41084108
userAgent:
41094109
type: string
4110-
/user/{userId}/pushSubscription/{key}:
4110+
/user/{userId}/pushSubscription/{endpoint}:
41114111
get:
41124112
summary: Get web push notification settings for a user
41134113
description: |
@@ -4121,7 +4121,7 @@ paths:
41214121
schema:
41224122
type: number
41234123
- in: path
4124-
name: key
4124+
name: endpoint
41254125
required: true
41264126
schema:
41274127
type: string
@@ -4153,7 +4153,7 @@ paths:
41534153
schema:
41544154
type: number
41554155
- in: path
4156-
name: key
4156+
name: endpoint
41574157
required: true
41584158
schema:
41594159
type: string

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"@supercharge/request-ip": "1.2.0",
4444
"@svgr/webpack": "6.5.1",
4545
"@tanem/react-nprogress": "5.0.30",
46-
"@types/wink-jaro-distance": "^2.0.2",
4746
"@types/ua-parser-js": "^0.7.36",
47+
"@types/wink-jaro-distance": "^2.0.2",
4848
"ace-builds": "1.15.2",
4949
"axios": "1.3.4",
5050
"axios-rate-limit": "1.3.0",
@@ -65,6 +65,8 @@
6565
"express-session": "1.17.3",
6666
"formik": "^2.4.6",
6767
"gravatar-url": "3.1.0",
68+
"http-proxy-agent": "^7.0.2",
69+
"https-proxy-agent": "^7.0.6",
6870
"lodash": "4.17.21",
6971
"mime": "3",
7072
"next": "^14.2.25",
@@ -101,8 +103,8 @@
101103
"swr": "2.2.5",
102104
"tailwind-merge": "^2.6.0",
103105
"typeorm": "0.3.12",
104-
"undici": "^7.3.0",
105106
"ua-parser-js": "^1.0.35",
107+
"undici": "^7.3.0",
106108
"web-push": "3.5.0",
107109
"wink-jaro-distance": "^2.0.0",
108110
"winston": "3.8.2",

pnpm-lock.yaml

Lines changed: 24 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/api/jellyfin.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ class JellyfinAPI extends ExternalAPI {
130130
const safeDeviceId =
131131
deviceId && deviceId.length > 0
132132
? deviceId
133-
: Buffer.from(`BOT_jellyseerr_fallback_${Date.now()}`).toString(
134-
'base64'
135-
);
133+
: Buffer.from('BOT_jellyseerr').toString('base64');
136134

137135
let authHeaderVal: string;
138136
if (authToken) {

server/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ import { getAppVersion } from '@server/utils/appVersion';
2828
import createCustomProxyAgent from '@server/utils/customProxyAgent';
2929
import restartFlag from '@server/utils/restartFlag';
3030
import { getClientIp } from '@supercharge/request-ip';
31+
import axios from 'axios';
3132
import { TypeormStore } from 'connect-typeorm/out';
3233
import cookieParser from 'cookie-parser';
3334
import type { NextFunction, Request, Response } from 'express';
3435
import express from 'express';
3536
import * as OpenApiValidator from 'express-openapi-validator';
3637
import type { Store } from 'express-session';
3738
import session from 'express-session';
39+
import http from 'http';
40+
import https from 'https';
3841
import next from 'next';
3942
import path from 'path';
4043
import swaggerUi from 'swagger-ui-express';
@@ -73,6 +76,11 @@ app
7376
const settings = await getSettings().load();
7477
restartFlag.initializeSettings(settings);
7578

79+
if (settings.network.forceIpv4First) {
80+
axios.defaults.httpAgent = new http.Agent({ family: 4 });
81+
axios.defaults.httpsAgent = new https.Agent({ family: 4 });
82+
}
83+
7684
// Register HTTP proxy
7785
if (settings.network.proxy.enabled) {
7886
await createCustomProxyAgent(settings.network.proxy);

server/lib/settings/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export interface MainSettings {
140140

141141
export interface NetworkSettings {
142142
csrfProtection: boolean;
143+
forceIpv4First: boolean;
143144
trustProxy: boolean;
144145
proxy: ProxySettings;
145146
}
@@ -544,6 +545,7 @@ class Settings {
544545
},
545546
network: {
546547
csrfProtection: false,
548+
forceIpv4First: false,
547549
trustProxy: false,
548550
proxy: {
549551
enabled: false,

server/routes/auth.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,14 @@ authRoutes.post('/jellyfin', async (req, res, next) => {
277277
select: { id: true, jellyfinDeviceId: true },
278278
});
279279

280-
let deviceId = '';
281-
if (user) {
282-
deviceId = user.jellyfinDeviceId ?? '';
283-
} else {
284-
deviceId = Buffer.from(`BOT_jellyseerr_${body.username ?? ''}`).toString(
280+
let deviceId = 'BOT_jellyseerr';
281+
if (user && user.id === 1) {
282+
// Admin is always BOT_jellyseerr
283+
deviceId = 'BOT_jellyseerr';
284+
} else if (user && user.jellyfinDeviceId) {
285+
deviceId = user.jellyfinDeviceId;
286+
} else if (body.username) {
287+
deviceId = Buffer.from(`BOT_jellyseerr_${body.username}`).toString(
285288
'base64'
286289
);
287290
}

0 commit comments

Comments
 (0)