Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 92ef036

Browse files
committed
Minor docs improvements.
1 parent 0e8a08a commit 92ef036

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

roles/_meta/webserver/meta/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ dependencies:
88
- role: debian/nodejs
99
- role: debian/php-cli
1010
- role: debian/php-fpm
11+
- role: debian/php_composer
1112
- role: debian/nginx

roles/debian/nginx/templates/vhost_letsencrypt.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ server {
99
server_name {{ domain.server_name }};
1010
error_log {{ domain.error_log }} {{ domain.error_log_level }};
1111
access_log {{ domain.access_log }} {{ domain.access_log_format | default('main') }};
12-
# Proxy for certbot (LetsEncrypt)
1312
{% if domain.ssl.web_server | default('standalone') == 'standalone' %}
14-
location /.well-known/acme-challenge/ {
15-
proxy_pass http://127.0.0.1:{{ domain.ssl.http_01_port }}$request_uri;
16-
}
13+
# Proxy for certbot (LetsEncrypt)
14+
location /.well-known/acme-challenge/ {
15+
proxy_pass http://127.0.0.1:{{ domain.ssl.http_01_port }}$request_uri;
16+
}
1717
{% endif %}
1818
}

roles/debian/php-fpm/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Installs and configures the PHP-FPM flavour of FastCGI.
44

5+
Note, for legacy reasons this role sets up PHP-FPM to use TCP/IP instead of a Unix socket by default. However, we *recommend* you change this by setting `unix_socket: true` unless you really need to run PHP-FPM over TCP/IP, as a Unix socket is much faster. If you do, be sure to set the `pool_group` variable to match your web server user, or the web server will be unable to interact with PHP.
6+
57
<!--TOC-->
68
<!--ENDTOC-->
79

@@ -23,7 +25,7 @@ php:
2325
# It is important to scale up processes on bigger servers, so that more
2426
# requests can be handled. Double the number of vCPUs is a good default.
2527
# Can be between 5 and 64.
26-
max_children: "{{ [5, [(ansible_facts.ansible_processor_nproc | default(1)) * 2, 64] | min] | max }}" # Fallback in case ansible_processor_nproc is not gathered before tasks
28+
max_children: "{{ [10, [(ansible_facts.ansible_processor_nproc | default(1)) * 2, 64] | min] | max }}" # Fallback in case ansible_processor_nproc is not gathered before tasks
2729
start_servers: 2
2830
min_spare_servers: 1
2931
max_spare_servers: 3

roles/debian/php-fpm/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ php:
66
unix_socket: false # set to true to use a unix socket, you must also update nginx and cachetool if you do
77
server_ip: "127.0.0.1"
88
tcp_port: "" # leave empty to automate port selection - port will be "90{{ version | replace('.','') }}" - e.g. 9081 for PHP 8.1
9-
pool_user: "{{ user_deploy.username }}"
10-
pool_group: "{{ user_deploy.username }}" # if using unix socket this should be the web server user
9+
pool_user: "{{ user_deploy.username }}" # this should always be the deploy user, usually deploy
10+
pool_group: "{{ user_deploy.username }}" # if using unix socket this should be the web server user, often www-data
1111
pm: dynamic # can also be static, see https://tideways.com/profiler/blog/an-introduction-to-php-fpm-tuning
1212
default_socket_timeout: 60
1313
# It is important to scale up processes on bigger servers, so that more

0 commit comments

Comments
 (0)