apt install php-imagick imagemagick
config.php
'enabledPreviewProviders' =>
array (
'OC\Preview\PNG',
'OC\Preview\JPEG',
'OC\Preview\GIF',
'OC\Preview\BMP',
'OC\Preview\XBitmap',
'OC\Preview\MP3',
'OC\Preview\TXT',
'OC\Preview\MarkDown',
'OC\Preview\OpenDocument',
'OC\Preview\Krita',
'OC\Preview\HEIC',
),
location / {
proxy_headers_hash_max_size 512;
proxy_headers_hash_bucket_size 64;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_hide_header Upgrade;
add_header Front-End-Https on;
# whatever the IP of your cloud server is
proxy_pass https://CONTAINER_IP_ADDRESS;
}
location /push/ws {
proxy_pass http://CONTAINER_IP_ADDRESS:7867;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
config.php
'overwriteprotocol' => 'https',
'overwrite.cli.url' => 'https://DOMAIN',
'overwritehost' => 'DOMAIN',
'overwritewebroot' => '/',
config.php
'default_phone_region' => 'PL',
mp0: /mnt/disk1/,mp=/mnt/storage
lxc.idmap: u 0 100000 1000
lxc.idmap: g 0 100000 1000
lxc.idmap: u 1000 1000 1
lxc.idmap: g 1000 1000 1
lxc.idmap: u 1001 101001 64535
lxc.idmap: g 1001 101001 64535
pve shell
chmod -R 770 /mnt/storage
CT shell
chown -R 1000:1000 /mnt/storage