Skip to content

Commit

Permalink
NGX-864: Set Apache Timeout to a default of 300 seconds (#22)
Browse files Browse the repository at this point in the history
- This allows long running php scripts which have been proxed to an fpm socket to complete
  • Loading branch information
combssm authored Apr 26, 2024
1 parent 2b25140 commit 6f7fb86
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Available variables are listed below with their default values (you can also see
| apache_modules_config_path | Default: `/etc/{{ apache_name }}/conf.modules.d`
| apache_packages | The list of Apache packages to install
| apache_systemd_restart | Default: `false`
| apache_timeout | Default: `300`

## Example Playbook
```yaml
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ apache_user: apache

apache_port_http: 80
apache_port_https: 443
apache_timeout: 300

apache_config: /etc/{{ apache_name }}/conf/{{ apache_name }}.conf
apache_config_path: /etc/{{ apache_name }}/conf.d
Expand Down
6 changes: 6 additions & 0 deletions tasks/configure/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@
mode: "0644"
notify:
- Restart apache

- name: Set Apache Timeout Directive
ansible.builtin.lineinfile:
path: "{{ apache_config }}"
regexp: '^Timeout\s+\d+'
line: "Timeout {{ apache_timeout }}"

0 comments on commit 6f7fb86

Please sign in to comment.