Custom Nginx Directives
-
Is there any way to add custom nginx directives/modifications on a per-app basis that will stick?
For example, if I wanted to limit the upload file size for a particular Cloudron app, I would modify the HTTP body size in the nginx config. However, this would be overwritten by Cloudron the next time the nginx conf file was reloaded.
Is there a way to make these changes/directives permanent?
-
Hello James -- The file upload size limit was one example. There have been other instances when having the ability to add nginx directives would be beneficial.
However, for the upload size example, specific apps would include ghost, wordpress, peertube, and possibly nextcloud. Applications where users would regularly upload files. I believe by default it's set to unlimited. But I have use cases where modifying the limit would be beneficial.
Not a huge deal. But it's something I've been exploring and figured I'd ask. Thanks to everyone for reading.
-
Hello @Andrew
Many apps run their own NGINX or APACHE2 inside the app and can be configured on that level or on the application level.
For example Nextcloud has the/app/data/php.inifile where you can configure e.gpost_max_sizeandupload_max_filesizeto limit that.
Same for WordPress.
Ideally, each app should have the ability to configure this.From your example, the apps ghost and peertube do not have a
php.inibecause they run NGINX inside the app.
Having the possibility to edit / configure NGINX directives there as well is understandable.I will tag this topic as feature request to track this for the future.
-
J james moved this topic from Discuss