Hello there,
So I recently installed Nextcloud via docker on my system. Until now the webui was on port 85 on my network.
Once I installed Nextcloud I tweaked a few files to increase the allowed upload size:
- nginx.conf files, like /etc/nginx/nginx.conf to add client_max_body_size 0; and server {client_max_body_size 0; }
- a few php.ini to add upload_max_filesize = 16G/post_max_size = 16G
- and a few .user.ini to add the same code as to the php.ini files.
The container runs trough Caddy v2 to access it from the internet.
A few days later wanted to login into the webui and I get a This site can’t be reached the host refused to connect. I'm sure I messed up something while tweaking those files. My bet is that the /etc/nginx/nginx.conf is causing the problem but I can't tell as I'm not sure what to look for.
If I run omv-firsaid to configure web control panel and set it to port 85 I get the following:
Code
----------
ID: test_nginx_service_config
Function: cmd.run
Name: nginx -t
Result: False
Comment: Command "nginx -t" run
Started: 00:22:15.520478
Duration: 91.771 ms
Changes:
----------
pid:
30423
retcode:
1
stderr:
nginx: [emerg] "server" directive is not allowed here in /etc/nginx/nginx.conf:66
nginx: configuration file /etc/nginx/nginx.conf test failed
stdout:
----------
ID: restart_nginx_service
Function: service.running
Name: nginx
Result: False
Comment: One or more requisite failed: omv.deploy.nginx.default.test_nginx_service_config
Started: 00:22:15.670176
Duration: 0.033 ms
Changes:
----------
ID: monitor_nginx_service
Function: module.run
Name: monit.monitor
Result: False
Comment: One or more requisite failed: omv.deploy.nginx.default.restart_nginx_service
Started: 00:22:15.674996
Duration: 0.033 ms
Changes:
Summary for raspberrypi
------------
Succeeded: 5 (changed=4)
Failed: 3
Alles anzeigen
Any advice would be highly appreciated.
Cheers