mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 08:08:34 +01:00
fix: use nginx for php fpm
This commit is contained in:
@@ -63,10 +63,11 @@
|
||||
working_dir: /var/www/
|
||||
when: not project_stat.stat.exists
|
||||
|
||||
- name: Install php-fpm
|
||||
- name: Install php-fpm & nginx
|
||||
apt:
|
||||
pkg:
|
||||
- php-fpm
|
||||
- nginx
|
||||
|
||||
- name: Configure php-fpm listen
|
||||
lineinfile:
|
||||
@@ -78,12 +79,19 @@
|
||||
lineinfile:
|
||||
path: /etc/php/8.1/fpm/pool.d/www.conf
|
||||
regex: ^listen = .*$
|
||||
line: listen = 0.0.0.0:8080
|
||||
line: listen = 0.0.0.0:9000
|
||||
notify: restart php-fpm
|
||||
|
||||
- name: Configure php-fpm listen allowed clients
|
||||
lineinfile:
|
||||
path: /etc/php/8.1/fpm/pool.d/www.conf
|
||||
regex: ^;*listen.allowed_clients = .*$
|
||||
line: listen.allowed_clients = 192.168.122.1
|
||||
#line: listen.allowed_clients = 192.168.122.1
|
||||
line: listen.allowed_clients = 127.0.0.1
|
||||
notify: restart php-fpm
|
||||
|
||||
- name: Configure nginx
|
||||
template:
|
||||
src: default-nginx.conf
|
||||
dest: /etc/nginx/sites-available/default
|
||||
notify: restart nginx
|
||||
|
||||
Reference in New Issue
Block a user