Merge pull request #46 from aggarwalakshun/invidious-improvements

Invidious improvements
This commit is contained in:
aggarwalakshun
2025-05-01 12:32:44 +05:30
committed by GitHub
4 changed files with 49 additions and 23 deletions

View File

@@ -14,6 +14,17 @@ spec:
labels: labels:
app: invidious-db app: invidious-db
spec: spec:
initContainers:
- name: clean-db-dir
image: busybox
command:
- sh
- -c
- |
rm -rf /var/lib/postgresql/data/lost+found
volumeMounts:
- name: postgres-data
mountPath: /var/lib/postgresql/data
containers: containers:
- name: postgres - name: postgres
image: postgres:14 image: postgres:14

View File

@@ -14,20 +14,53 @@ spec:
labels: labels:
app: invidious-companion app: invidious-companion
spec: spec:
initContainers:
- name: vpn
restartPolicy: Always
image: qmcgaw/gluetun:v3.40.0
securityContext:
capabilities:
add:
- NET_ADMIN
env:
- name: OPENVPN_PASSWORD
valueFrom:
secretKeyRef:
name: openvpn-secrets
key: OPENVPN_PASSWORD
- name: OPENVPN_USER
valueFrom:
secretKeyRef:
name: openvpn-secrets
key: OPENVPN_USER
- name: VPN_SERVICE_PROVIDER
value: "surfshark"
- name: SERVER_COUNTRIES
value: "Netherlands"
- name: FIREWALL_INPUT_PORTS
value: "8282"
- name: FIREWALL_VPN_INPUT_PORTS
value: "8282"
- name: FIREWALL_OUTBOUND_SUBNETS
value: "192.168.1.0/24"
volumeMounts:
- name: companion-cache
mountPath: /var/tmp/youtubei.js
subPath: youtubei.js
containers: containers:
- name: invidious-companion - name: invidious-companion
image: quay.io/invidious/invidious-companion:master-26cb520 image: quay.io/invidious/invidious-companion:master-16d06cd
env: env:
- name: SERVER_SECRET_KEY - name: SERVER_SECRET_KEY
value: "mtRhvm9wMCJhdnGP" value: "mtRhvm9wMCJhdnGP"
ports: ports:
- containerPort: 8282 - containerPort: 8283
securityContext: securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
capabilities: capabilities:
drop: drop:
- ALL - ALL
allowPrivilegeEscalation: false
volumeMounts: volumeMounts:
- name: companion-cache - name: companion-cache
mountPath: /var/tmp/youtubei.js mountPath: /var/tmp/youtubei.js

View File

@@ -40,19 +40,3 @@ spec:
targetPort: 3000 targetPort: 3000
nodePort: 3111 nodePort: 3111
protocol: TCP protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: invidious-companion-external-service
namespace: default
spec:
type: NodePort
selector:
app: invidious-companion
ports:
- port: 8282
targetPort: 8282
nodePort: 8282
protocol: TCP

View File

@@ -50,7 +50,6 @@ spec:
check_tables: true check_tables: true
invidious_companion: invidious_companion:
- private_url: "http://invidious-companion-service:8282" - private_url: "http://invidious-companion-service:8282"
public_url: "http://192.168.1.120:8282"
invidious_companion_key: "mtRhvm9wMCJhdnGP" invidious_companion_key: "mtRhvm9wMCJhdnGP"
hmac_key: "qp/GnTJs5KCB8Ma8" hmac_key: "qp/GnTJs5KCB8Ma8"
- name: INVIDIOUS_PORT - name: INVIDIOUS_PORT
@@ -71,4 +70,3 @@ spec:
volumes: volumes:
- name: logging - name: logging
emptyDir: {} emptyDir: {}