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:
flags:
style-src:
unsafe-inline: true
unsafe-inline: true
script-src-elem:
unsafe-inline: true
unsafe-inline: true
script-src:
unsafe-eval: true
whitelist:
font-src:
- "data:"
@@ -21,44 +23,44 @@ server:
aliases: []
docker:
volumes:
data: nextcloud_data
data: nextcloud_data
services:
redis:
enabled: true
enabled: true
database:
enabled: true
enabled: true
nextcloud:
name: "nextcloud"
image: "nextcloud"
version: "production-fpm-alpine"
name: "nextcloud"
image: "nextcloud"
version: "production-fpm-alpine"
backup:
no_stop_required: true
cpus: "2.0"
mem_reservation: "2g"
mem_limit: "3g"
pids_limit: 512
no_stop_required: true
cpus: "2.0"
mem_reservation: "2g"
mem_limit: "3g"
pids_limit: 512
proxy:
name: "nextcloud-proxy"
image: "nginx"
version: "alpine"
name: "nextcloud-proxy"
image: "nginx"
version: "alpine"
backup:
no_stop_required: true
no_stop_required: true
cron:
name: "nextcloud-cron"
name: "nextcloud-cron"
talk:
name: "nextcloud-talk"
image: "nextcloud/aio-talk"
version: "latest"
name: "nextcloud-talk"
image: "nextcloud/aio-talk"
version: "latest"
backup:
no_stop_required: false
no_stop_required: false
turn_server:
onboard_enabled: true
standalone_enabled: true
network_mode: host
whiteboard:
name: "nextcloud-whiteboard"
image: "ghcr.io/nextcloud-releases/whiteboard"
version: "latest"
name: "nextcloud-whiteboard"
image: "ghcr.io/nextcloud-releases/whiteboard"
version: "latest"
backup:
no_stop_required: true
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;
default_type application/octet-stream;
types {
application/javascript mjs;
application/javascript mjs;
application/wasm wasm;
application/octet-stream tflite;
}
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '