Comments (7)
Missed Spacing in Variable
from humhub-docker.
hi, how did you solve it, do you need a space between number and unit?
100 m
indstead of 100m
from humhub-docker.
If you follow the NGINX docs shouldn't need a space.
http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size
Edit:
Looking more into this here's a post similar.
https://stackoverflow.com/questions/2056124/nginx-client-max-body-size-has-no-effect
from humhub-docker.
@olekristensen have you tried the value in humhub-settings like ArchBlood in issue #92 suggested?
#92 (comment)
It could be possible to set this by manipulating the config file directly, but I do not have any time at the moment. A PR would be highly appreciated :)
from humhub-docker.
I don't know much about NGINX so I can give an example. 🤔
humhub-docker/etc/nginx/nginx.conf
Line 34 in 712aae0
client_max_body_size size;
client_max_body_size 100m;
As NGINX_CLIENT_MAX_BODY_SIZE
is seen as 1m
as this is the default value.
from humhub-docker.
Just tested it. To raise the upload-limit you have to set all 3 env-vars NGINX_CLIENT_MAX_BODY_SIZE
, PHP_POST_MAX_SIZE
and PHP_UPLOAD_MAX_FILESIZE
. Also use M
for PHP and m
for nginx do avoid problems. Do not seperate the number from the unit (e.g. 100 m
use 100m
). You than can raise the upload-limit at the administration-page inside Humhub (Administration > Settings > Advanced > Files > max. upload file size).
version: '3.1'
services:
humhub:
image: mriedmann/humhub:latest
ports:
- "8080:80"
environment:
NGINX_CLIENT_MAX_BODY_SIZE: 50m
PHP_UPLOAD_MAX_FILESIZE: 50M
PHP_POST_MAX_SIZE: 50M
I can totally see why this is confusing. If I find some time I can introduce a variable that can be used to change all 3 values at once.
from humhub-docker.
@mriedmann Thanks a lot 🙏 - i also just had to lean that it is only set on build and not on run.
Thanks for making a dockerized version, it spins beautifully !
from humhub-docker.
Related Issues (20)
- profile_image HOT 5
- Unable to connect to 'db' HOT 5
- 502 Bad Gateway Error when connecting to PHP-FPM upstream in Nginx" HOT 7
- 1.13.1 released HOT 2
- themes and assets directories not writable HOT 2
- Protect HumHub against viruses and malware when uploading files HOT 2
- UPDATE procedure HOT 1
- Upgrading from 1.12 to latest HOT 5
- Linkedin module uninstall leads to modules section being lost HOT 3
- I can't open the picture HOT 8
- SSL Woes HOT 8
- PHP_POST_MAX_SIZE and/or PHP_UPLOAD_MAX_FILESIZE variable ignored HOT 8
- Latest 1.14 docker image fails to start (1.14.5+1) HOT 8
- err_too_many_redirects HOT 4
- latest version? HOT 3
- Error launching container - 97: Address family not supported by protocol HOT 4
- OSError: [Errno 29] Invalid seek error after first start HOT 3
- Access denied for user 'root'@'localhost' (using password: NO) HOT 2
- Several issues while increasing file upload size HOT 8
- Issue with email delivery when creating new accounts and others HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from humhub-docker.