![](http://content.invisioncic.com/u329766/set_resources_34/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
SpongeRoss
-
Posts
6 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by SpongeRoss
-
-
Hi,
I'm having trouble with increasing the upload_max_filesize of Nextcloud. I followed a Filamore tutorial however it doesn't work for me.
My version of php is 8.2 (/etc/php82 in the Nextcloud command line) and changing the values in the php.ini file found in this directory doesn't affect the upload limit.
I suspect that the php.ini data is not used since in the default value for upload_max_filesize in the php.ini file was at 2M, while on my WebUI it appeared to be at 536.9 MB.
I don't seem to be the only one having this issue as per the comments in the video mentioned above.
Has anyone found a solution for this?
-
5 hours ago, Mainfrezzer said:
Via the GUI you just simply edit the container and add a new path with container path as where its available inside the container and host path where it is on the host machine.
indepth information about docker and bind mounts can be found here https://docs.docker.com/storage/bind-mounts/That did it, thanks a lot!!
-
3 hours ago, Mainfrezzer said:
you do need to mount /mnt/user/NextCloud/nextcloud.log in the swag container.
The docker container has no access to the files on the hostsystem.Thanks for your reply!
I get the following error:
mount: can't find /mnt/user/NextCloud/nextcloud.log in /etc/fstab
should the path be different?
-
Hi,
I got Nextcloud running and available through swag no problem.
Now I would like to secure my connexion using Fail2ban, however after following the nextcloud documentation and this unraid tutorial, fail2ban won't start.
Can someone help?
Here is the whole process I followed:
1 - In the jail.local file found in /mnt/user/appdata/swag/fail2ban I added the following :
[nextcloud] enabled = true filter = nextcloud port = http,https logpath = /mnt/user/NextCloud/nextcloud.log
2 - In /mnt/user/appdata/swag/fail2ban/filter.d I created nextcloud.conf and added:
[Definition] _groupsre = (?:(?:,?\s*"\w+":(?:"[^"]+"|\w+))*) failregex = ^\{%(_groupsre)s,?\s*"remoteAddr":"<HOST>"%(_groupsre)s,?\s*"message":"Login failed: ^\{%(_groupsre)s,?\s*"remoteAddr":"<HOST>"%(_groupsre)s,?\s*"message":"Trusted domain error. datepattern = ,?\s*"time"\s*:\s*"%%Y-%%m-%%d[T ]%%H:%%M:%%S(%%z)?"
3 - From the swag console, I went to /etc/fail2ban/jail.d and have created a nextcloud.local file. Then inside it I added:
[nextcloud] backend = auto enabled = true port = 80,443 protocol = tcp filter = nextcloud maxretry = 3 bantime = 86400 findtime = 43200 logpath = /mnt/user/NextCloud/nextcloud.log
4 - Restarted Swag
5 - Used the command fail2ban-client start in the swag command line
6 - Got the error
[4858]: ERROR Failed during configuration: Have not found any log file for nextcloud jail
(6.12.4) Can't change the upload_max_filesize with Nextcloud 27.1.1 (php 8.2)
in General Support
Posted
Found the solution
I opened the nextcloud command line
typed
nano/config/php/php-local.ini
Added the following lines:
upload_max_filesize = 16G post_max_size = 16G memory_limit = 2048M