diff --git a/roles/copr/backend/files/lighttpd/lighttpd.conf b/roles/copr/backend/files/lighttpd/lighttpd.conf index c2526f1962..fd8c0e2be8 100644 --- a/roles/copr/backend/files/lighttpd/lighttpd.conf +++ b/roles/copr/backend/files/lighttpd/lighttpd.conf @@ -75,7 +75,7 @@ var.socket_dir = home_dir + "/sockets" ####################################################################### ## ## Load the modules. -include "modules.conf" +#include "modules.conf" server.modules = ( "mod_access", "mod_setenv", @@ -210,7 +210,7 @@ server.network-backend = "linux-sendfile" ## ## With SELinux enabled, this is denied by default and needs to be allowed ## by running the following once : setsebool -P httpd_setrlimit on -#server.max-fds = 2048 +server.max-fds = 2048 ## ## Stat() call caching. diff --git a/roles/copr/backend/tasks/main.yml b/roles/copr/backend/tasks/main.yml index c0f403cb2f..b2aa7fcaf4 100644 --- a/roles/copr/backend/tasks/main.yml +++ b/roles/copr/backend/tasks/main.yml @@ -80,6 +80,12 @@ when: not devel include: "install_certs.yml" +- name: allow lighttpd set fds limit + seboolean: name=httpd_setrlimit state=yes persistent=yes + +- name: create directory for compress module of lighttpd + file: path=/var/cache/lighttpd/compress owner=lighttpd group=lighttpd mode=0644 state=directory + # mime default to text/plain and enable dirlisting for indexes - name: update lighttpd configs copy: src="lighttpd/{{ item }}" dest="/etc/lighttpd/conf.d/{{ item }}" owner=root group=root mode=0644