funkwhale: Update to 1.1.1
This commit is contained in:
parent
4fe0c24880
commit
aaeb739f12
4 changed files with 60 additions and 40 deletions
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: "1.1"
|
appVersion: "1.1.1"
|
||||||
description: A social platform to enjoy and share music
|
description: A social platform to enjoy and share music
|
||||||
icon: https://funkwhale.audio/favicon.png
|
icon: https://funkwhale.audio/favicon.png
|
||||||
name: funkwhale
|
name: funkwhale
|
||||||
version: 0.3.7
|
version: 0.3.8
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: redis
|
- name: redis
|
||||||
|
|
|
@ -28,6 +28,10 @@ data:
|
||||||
|
|
||||||
root /frontend;
|
root /frontend;
|
||||||
|
|
||||||
|
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:";
|
||||||
|
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
include /etc/nginx/funkwhale_proxy.conf;
|
include /etc/nginx/funkwhale_proxy.conf;
|
||||||
# this is needed if you have file import via upload enabled
|
# this is needed if you have file import via upload enabled
|
||||||
|
@ -36,11 +40,25 @@ data:
|
||||||
}
|
}
|
||||||
|
|
||||||
location /front/ {
|
location /front/ {
|
||||||
|
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:";
|
||||||
|
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
||||||
|
add_header Service-Worker-Allowed "/";
|
||||||
|
add_header X-Frame-Options "ALLOW";
|
||||||
alias /frontend/;
|
alias /frontend/;
|
||||||
expires 30d;
|
expires 30d;
|
||||||
add_header Pragma public;
|
add_header Pragma public;
|
||||||
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
||||||
add_header Service-Worker-Allowed "/";
|
}
|
||||||
|
|
||||||
|
location /front/embed.html {
|
||||||
|
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:";
|
||||||
|
add_header Referrer-Policy "strict-origin-when-cross-origin";
|
||||||
|
|
||||||
|
add_header X-Frame-Options "ALLOW";
|
||||||
|
alias /frontend/embed.html;
|
||||||
|
expires 30d;
|
||||||
|
add_header Pragma public;
|
||||||
|
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
||||||
}
|
}
|
||||||
|
|
||||||
location /federation/ {
|
location /federation/ {
|
||||||
|
@ -66,6 +84,7 @@ data:
|
||||||
{{- if .Values.s3.enabled }}
|
{{- if .Values.s3.enabled }}
|
||||||
location ~ /_protected/media/(.+) {
|
location ~ /_protected/media/(.+) {
|
||||||
internal;
|
internal;
|
||||||
|
proxy_set_header Authorization "";
|
||||||
proxy_pass $1;
|
proxy_pass $1;
|
||||||
}
|
}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
|
|
|
@ -48,21 +48,11 @@ spec:
|
||||||
compose/django/entrypoint.sh compose/django/server.sh
|
compose/django/entrypoint.sh compose/django/server.sh
|
||||||
fi
|
fi
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
{{ toYaml .Values.api.readinessProbe | nindent 12 }}
|
||||||
command:
|
livenessProbe:
|
||||||
- stat
|
{{ toYaml .Values.api.livenessProbe | nindent 12 }}
|
||||||
- /run/funkwhale/funkwhale.sock
|
|
||||||
failureThreshold: {{ .Values.api.readinessProbe.failureThreshold | default 3 }}
|
|
||||||
periodSeconds: {{ .Values.api.readinessProbe.periodSeconds | default 5 }}
|
|
||||||
initialDelaySeconds: {{ .Values.api.readinessProbe.initialDelaySeconds | default 5 }}
|
|
||||||
startupProbe:
|
startupProbe:
|
||||||
exec:
|
{{ toYaml .Values.api.startupProbe | nindent 12 }}
|
||||||
command:
|
|
||||||
- stat
|
|
||||||
- /run/funkwhale/funkwhale.sock
|
|
||||||
failureThreshold: {{ .Values.api.startupProbe.failureThreshold | default 3 }}
|
|
||||||
periodSeconds: {{ .Values.api.startupProbe.periodSeconds | default 20 }}
|
|
||||||
initialDelaySeconds: {{ .Values.api.startupProbe.initialDelaySeconds | default 5 }}
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "funkwhale.fullname" . }}
|
name: {{ include "funkwhale.fullname" . }}
|
||||||
|
@ -105,24 +95,11 @@ spec:
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
{{ toYaml .Values.front.livenessProbe | nindent 12 }}
|
||||||
path: /
|
|
||||||
port: http
|
|
||||||
failureThreshold: {{ .Values.front.livenessProbe.failureThreshold | default 3 }}
|
|
||||||
periodSeconds: {{ .Values.front.livenessProbe.periodSeconds | default 20 }}
|
|
||||||
initialDelaySeconds: {{ .Values.front.livenessProbe.initialDelaySeconds | default 15 }}
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
{{ toYaml .Values.front.readinessProbe | nindent 12 }}
|
||||||
port: http
|
|
||||||
failureThreshold: {{ .Values.front.readinessProbe.failureThreshold | default 3 }}
|
|
||||||
periodSeconds: {{ .Values.front.readinessProbe.periodSeconds | default 5 }}
|
|
||||||
initialDelaySeconds: {{ .Values.front.readinessProbe.initialDelaySeconds | default 5 }}
|
|
||||||
startupProbe:
|
startupProbe:
|
||||||
tcpSocket:
|
{{ toYaml .Values.front.startupProbe | nindent 12 }}
|
||||||
port: http
|
|
||||||
failureThreshold: {{ .Values.front.startupProbe.failureThreshold | default 3 }}
|
|
||||||
periodSeconds: {{ .Values.front.startupProbe.periodSeconds | default 20 }}
|
|
||||||
initialDelaySeconds: {{ .Values.front.startupProbe.initialDelaySeconds | default 5 }}
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /run/funkwhale
|
- mountPath: /run/funkwhale
|
||||||
name: funkwhale-sock
|
name: funkwhale-sock
|
||||||
|
|
|
@ -127,8 +127,23 @@ api:
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
readinessProbe: {}
|
readinessProbe:
|
||||||
startupProbe: {}
|
exec:
|
||||||
|
command:
|
||||||
|
- stat
|
||||||
|
- /run/funkwhale/funkwhale.sock
|
||||||
|
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- stat
|
||||||
|
- /run/funkwhale/funkwhale.sock
|
||||||
|
|
||||||
|
startupProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- stat
|
||||||
|
- /run/funkwhale/funkwhale.sock
|
||||||
|
|
||||||
front:
|
front:
|
||||||
image:
|
image:
|
||||||
|
@ -156,13 +171,22 @@ front:
|
||||||
# memory: 128Mi
|
# memory: 128Mi
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
readinessProbe: {}
|
|
||||||
livenessProbe: {}
|
readinessProbe:
|
||||||
startupProbe: {}
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: http
|
||||||
|
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: http
|
||||||
|
|
||||||
|
startupProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: http
|
||||||
|
|
||||||
celery:
|
celery:
|
||||||
beat:
|
beat:
|
||||||
|
|
Loading…
Reference in a new issue