diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-10-27 09:20:01 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-10-27 09:20:01 -0400 |
commit | 10f73fb135d84b66c1fefe5cce68918885fbf908 (patch) | |
tree | da97424b6ff84d5cf829fcbefb650a2dc3a2e930 /tozt | |
parent | 1ec28d991b92524f59c8136bb84b9e10f7c24216 (diff) | |
download | puppet-tozt-10f73fb135d84b66c1fefe5cce68918885fbf908.tar.gz puppet-tozt-10f73fb135d84b66c1fefe5cce68918885fbf908.zip |
use fcgi for ttrss
Diffstat (limited to 'tozt')
-rw-r--r-- | tozt/tozt/files/nginx/ttrss-tls.conf | 11 | ||||
-rw-r--r-- | tozt/ttrss/manifests/init.pp | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tozt/tozt/files/nginx/ttrss-tls.conf b/tozt/tozt/files/nginx/ttrss-tls.conf index b438e7a..9909e13 100644 --- a/tozt/tozt/files/nginx/ttrss-tls.conf +++ b/tozt/tozt/files/nginx/ttrss-tls.conf @@ -8,5 +8,16 @@ server { include ssl; root /usr/share/webapps/tt-rss; + + location / { + index index.php; + } + + location ~ \.php$ { + try_files $uri = 404; + fastcgi_pass unix:/run/php-fpm/php-fpm.sock; + fastcgi_index index.php; + include /etc/nginx/fastcgi_params; + } } # vim:ft=nginx diff --git a/tozt/ttrss/manifests/init.pp b/tozt/ttrss/manifests/init.pp index 5f8cc7e..6bca0d6 100644 --- a/tozt/ttrss/manifests/init.pp +++ b/tozt/ttrss/manifests/init.pp @@ -6,6 +6,7 @@ class ttrss($dbpath) { "tt-rss", "postgresql", "php-pgsql", + "php-fpm", ]: ensure => installed; } @@ -114,4 +115,9 @@ class ttrss($dbpath) { Exec["create db"], ] } + + service { "php-fpm": + ensure => running, + require => Package["php-fpm"]; + } } |