mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 20:48:32 +01:00
fix: typo3 gateway
This commit is contained in:
2
roles/typo3-cms/meta/main.yml
Normal file
2
roles/typo3-cms/meta/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- global-handlers
|
||||
@@ -73,13 +73,14 @@
|
||||
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 = .*$
|
||||
line: listen = 0.0.0.0:9000
|
||||
regex: ^listen\.allowed_clients = .*$
|
||||
line: listen.allowed_clients = 127.0.0.1
|
||||
notify: restart php-fpm
|
||||
|
||||
- name: Configure php-fpm listen allowed clients
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
#log_format scripts '$fastcgi_path_info $document_root$fastcgi_script_name > $request';
|
||||
|
||||
server {
|
||||
#access_log /var/log/nginx/scripts.log scripts;
|
||||
|
||||
include fastcgi.conf;
|
||||
include fastcgi_params;
|
||||
listen 8080;
|
||||
index index.php index.html;
|
||||
root /var/www/html/public;
|
||||
root /var/www/atlantishq-cms/public/;
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
@@ -9,8 +15,9 @@ server {
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
add_header X-ATHQ-HANDLER cms;
|
||||
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_FILENAME /var/www/atlantishq-cms/public/index.php;
|
||||
#fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
add_header X-ATHQ-HANDLER cms always;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user