ansible-dokku icon indicating copy to clipboard operation
ansible-dokku copied to clipboard

Feature request: `dokku nginx:set` support

Open louwers opened this issue 3 years ago • 3 comments

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

louwers avatar Dec 11 '21 21:12 louwers

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 avatar Dec 14 '21 11:12 ltalirz

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'

ovitente avatar Dec 22 '23 15:12 ovitente

https://github.com/dokku/ansible-dokku/issues/169

ltalirz avatar Dec 23 '23 11:12 ltalirz