Nextcloud Talk: fix virtual-background web check by

- adding explicit MIME types for .wasm and .tflite in internal Nginx
- relaxing CSP (script-src: allow 'unsafe-eval') for WebAssembly
- removing obsolete turnserver draft.
Details: https://chatgpt.com/share/68d7dd39-50b8-800f-ab59-cfb1d3cf07cb
This commit is contained in:
2025-09-27 14:49:42 +02:00
parent dbbb3510f3
commit fc59c64273
3 changed files with 30 additions and 40 deletions

View File

@@ -3,9 +3,11 @@ server:
csp: csp:
flags: flags:
style-src: style-src:
unsafe-inline: true unsafe-inline: true
script-src-elem: script-src-elem:
unsafe-inline: true unsafe-inline: true
script-src:
unsafe-eval: true
whitelist: whitelist:
font-src: font-src:
- "data:" - "data:"
@@ -21,44 +23,44 @@ server:
aliases: [] aliases: []
docker: docker:
volumes: volumes:
data: nextcloud_data data: nextcloud_data
services: services:
redis: redis:
enabled: true enabled: true
database: database:
enabled: true enabled: true
nextcloud: nextcloud:
name: "nextcloud" name: "nextcloud"
image: "nextcloud" image: "nextcloud"
version: "production-fpm-alpine" version: "production-fpm-alpine"
backup: backup:
no_stop_required: true no_stop_required: true
cpus: "2.0" cpus: "2.0"
mem_reservation: "2g" mem_reservation: "2g"
mem_limit: "3g" mem_limit: "3g"
pids_limit: 512 pids_limit: 512
proxy: proxy:
name: "nextcloud-proxy" name: "nextcloud-proxy"
image: "nginx" image: "nginx"
version: "alpine" version: "alpine"
backup: backup:
no_stop_required: true no_stop_required: true
cron: cron:
name: "nextcloud-cron" name: "nextcloud-cron"
talk: talk:
name: "nextcloud-talk" name: "nextcloud-talk"
image: "nextcloud/aio-talk" image: "nextcloud/aio-talk"
version: "latest" version: "latest"
backup: backup:
no_stop_required: false no_stop_required: false
turn_server: turn_server:
onboard_enabled: true onboard_enabled: true
standalone_enabled: true standalone_enabled: true
network_mode: host network_mode: host
whiteboard: whiteboard:
name: "nextcloud-whiteboard" name: "nextcloud-whiteboard"
image: "ghcr.io/nextcloud-releases/whiteboard" image: "ghcr.io/nextcloud-releases/whiteboard"
version: "latest" version: "latest"
backup: backup:
no_stop_required: true no_stop_required: true
enabled: "{{ applications | get_app_conf('web-app-nextcloud', 'features.oidc', False) }}" # Activate OIDC for Nextcloud enabled: "{{ applications | get_app_conf('web-app-nextcloud', 'features.oidc', False) }}" # Activate OIDC for Nextcloud

View File

@@ -1,14 +0,0 @@
<?php
# Activates the turn server
# @see https://nextcloud-talk.readthedocs.io/en/latest/TURN/
return [
'turn_servers' => [
[
'host' => 'coturn',
'port' => {{ NEXTCLOUD_TALK_TURN_ONBOARD_PORT }},
'secret' => 'my-secret-key',
'protocols' => 'udp,tcp'
],
],
];

View File

@@ -18,7 +18,9 @@ http {
include /etc/nginx/mime.types; include /etc/nginx/mime.types;
default_type application/octet-stream; default_type application/octet-stream;
types { types {
application/javascript mjs; application/javascript mjs;
application/wasm wasm;
application/octet-stream tflite;
} }
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" ' '$status $body_bytes_sent "$http_referer" '