curl -X PUT --data-binary @/etc/unit/nextcloud.conf --unix-socket /run/control.unit.sock http://localhost/config/
{
"settings": {
"http": {
"max_body_size": 137438953472
}
},
"listeners": {
"10.0.0.20:80": {
"pass": "routes"
}
},
"routes": [
{
"match": {
"uri": [
"/.well-known/webfinger",
"/nextcloud/.well-known/webfinger"
]
},
"action": {
"return": 301,
"location": "/nextcloud/public.php?service=webfinger"
}
},
{
"match": {
"uri": [
"/.well-known/carddav",
"/.well-known/caldav",
"/nextcloud/.well-known/carddav",
"/nextcloud/.well-known/caldav",
]
},
"action": {
"return": 301,
"location": "/nextcloud/remote.php/dav/"
}
},
{
"match": {
"uri": [
"/nextcloud/build/*",
"/nextcloud/tests/*",
"/nextcloud/config/*",
"/nextcloud/lib/*",
"/nextcloud/3rdparty/*",
"/nextcloud/templates/*",
"/nextcloud/data/*",
"/nextcloud/autotest*",
"/nextcloud/occ*",
"/nextcloud/issue*",
"/nextcloud/indie*",
"/nextcloud/db_*",
"/nextcloud/console*"
]
},
"action": {
"return": 404
}
},
{
"match": {
"uri": [
"/nextcloud/core/ajax/update.php*",
"/nextcloud/cron.php*",
"/nextcloud/index.php*",
"/nextcloud/ocs-provider*.php*",
"/nextcloud/ocs/v1.php*",
"/nextcloud/ocs/v2.php*",
"/nextcloud/public.php*",
"/nextcloud/remote.php*",
"/nextcloud/status.php*",
"/nextcloud/updater*.php*"
]
},
"action": {
"pass": "applications/nextcloud/direct"
}
},
{
"match": {
"uri": [ "/nextcloud/" ]
},
"action": { "pass": "applications/nextcloud/index" }
},
{
"match": {
"uri": [ "/nextcloud" ]
},
"action": { "pass": "applications/nextcloud/index" }
},
{
"match": {
"uri": "/nextcloud/ocs-provider*"
},
"action": {
"pass": "applications/nextcloud/ocs"
}
},
{
"match": {
"uri": "/nextcloud/updater*"
},
"action": {
"pass": "applications/nextcloud/updater"
}
},
{
"match": {
"uri": ["/nextcloud/*"]
},
"action": {
"share": "var/www/html/$uri",
"fallback": { "pass": "applications/nextcloud/index" }
}
}
],
"applications": {
"nextcloud": {
"type": "php",
"processes": 4,
"user": "www-data",
"group": "www-data",
"options": {
"admin": {
"memory_limit": "128M",
"output_buffering": "0",
"post_max_size": "12G",
"upload_max_filesize": "128G"
}
},
"targets": {
"direct": {
"root": "/var/www/html"
},
"index": {
"root": "/var/www/html/nextcloud/",
"script": "index.php"
},
"ocs": {
"root": "/var/www/html/nextcloud/ocs-provider/",
"script": "index.php"
},
"updater": {
"root": "/var/www/html/nextcloud/updater/",
"script": "index.php"
}
}
}
}
}
за 3 секунды до входящего звонка по телефону из динамиков пошёл промкий треск