Install Nextcloud behind reverse proxy: Difference between revisions

From Jwiki
No edit summary
No edit summary
Line 33: Line 33:


== Debug ==
== Debug ==
Get logs


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
sudo docker logs -f nextcloud-aio-mastercontainer
sudo docker logs -f nextcloud-aio-mastercontainer
</syntaxhighlight>
</syntaxhighlight>
Get password
<syntaxhighlight lang="bash">
sudo docker exec nextcloud-aio-mastercontainer grep password /mnt/docker-aio-config/data/configuration.json
</syntaxhighlight>
Reload Nextcloud files
<syntaxhighlight lang="bash">
sudo docker exec -ti --user www-data nextcloud-aio-nextcloud /var/www/html/occ files:scan --all
</syntaxhighlight>




== Sources ==
== Sources ==

Revision as of 08:54, 29 August 2024

Prequisites

Install

Keep attention to NEXTCLOUD_DATADIR as that will be the installation directory

sudo docker run \
--init \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 8080:8080 \
--env APACHE_PORT=11000 \
--env APACHE_IP_BINDING=0.0.0.0 \
--env NEXTCLOUD_DATADIR=/mnt/nextcloud \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest


Final steps

1. Download Custom CSS package

2. Add custom css:

.editor__content{ max-width:90% !important; }


Debug

Get logs

sudo docker logs -f nextcloud-aio-mastercontainer

Get password

sudo docker exec nextcloud-aio-mastercontainer grep password /mnt/docker-aio-config/data/configuration.json

Reload Nextcloud files

sudo docker exec -ti --user www-data nextcloud-aio-nextcloud /var/www/html/occ files:scan --all



Sources