Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Custom Nginx Directives

Custom Nginx Directives

Scheduled Pinned Locked Moved Feature Requests
feature-request
4 Posts 2 Posters 41 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Andrew
    wrote last edited by
    #1

    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?

    1 Reply Last reply
    1
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Hello @Andrew
      Do you have a specific app in mind where you'd want to apply these limits?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Andrew
        wrote last edited by Andrew
        #3

        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.

        1 Reply Last reply
        0
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #4

          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.ini file where you can configure e.g post_max_size and upload_max_filesize to 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.ini because 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.

          1 Reply Last reply
          2
          • jamesJ james moved this topic from Discuss
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search