Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: dokku nginx:set support #140

Open
louwers opened this issue Dec 11, 2021 · 3 comments
Open

Feature request: dokku nginx:set support #140

louwers opened this issue Dec 11, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@louwers
Copy link

louwers commented Dec 11, 2021

Would be cool if support for dokku nginx:set could be added.

Right now I am doing this, which seems to work well:

    - name: check client-max-body-size
      command: dokku nginx:report {{ app_name }} --nginx-client-max-body-size 2>/dev/null
      register: client_max_body_size
      changed_when: false

    - name: set client-max-body-size
      vars:
        max_filesize: 500m
      ansible.builtin.shell: dokku nginx:set {{ app_name }} client-max-body-size {{ max_filesize }}
      when: "client_max_body_size.stdout != max_filesize"
      notify:
      - Rebuild config

  handlers:
    - name: Rebuild config
      command: dokku proxy:build-config --all
@ltalirz
Copy link
Member

ltalirz commented Dec 14, 2021

Sounds good - if anyone is interested in adding a dokku_nginx_set ansible module, I can suggest having a look e.g. at the dokku_config module

@ltalirz ltalirz added the enhancement New feature or request label Dec 14, 2021
@ovitente
Copy link

ovitente commented Dec 22, 2023

Is there any progress with it?
For now, I am using a workaround like this

- name: Set Nginx Proxy Read Timeout
  shell: 'dokku nginx:set app-name proxy-read-timeout 300'

@ltalirz
Copy link
Member

ltalirz commented Dec 23, 2023

#169

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants