-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.yml
79 lines (60 loc) · 2.58 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# If set, running the role will remove all files that it normally creates. It doesn't uninstall
# packages, however.
php_uninstall: no
# If set, and when php_uninstall is set, running the role will remove all snippets included in
# the nginx conf file, even if created by another role
php_uninstall_snippets: no
# A slug uniquely identifying the php project name
# Used pretty much everywhere. Defines the name of the ningx conf.
php_base_name: my_php_project
# The user that will own all WP-related files
php_user: "{{ php_base_name }}"
# Domain name for the website
php_domain_name: "{{ php_base_name }}.local"
php_url: "http://{{ php_domain_name }}"
# PHP site root. Where we tell php-fpm to look for its website
php_site_root: ""
# File we look for when we need this index of the website
php_index_filename: "index.php"
# If set, we will disallow robots by including the "disallow_robots" snippet provided by the
# nginx role.
php_disallow_robots: no
# If set, our nginx config will only answer to HTTPS requests, ignoring requests on port 80.
php_ssl_only: no
# If set, our nginx config will state that it supports http2.
# Can be enabled on any Ubuntu >= 16.04 and when nginx version is >= 1.9.5
nginx_support_http2: no
# All URLs from which we want to add redirections
php_redirections: []
# include defaut server block
include_default_location_block: yes
# If defined and set, the referer_hash_bucket_size will be set. Defaults to 64 in nginx.
#php_referer_hash_bucket_size: 64
# *** POOL-RELATED VARIABLES ***
#
# By default, our PHP site is served by the general OS-supplied "www" pool. However, if you want
# better isolation and or if you want to run your process as a user other than "www-data", you need
# to set up a php-fpm pool. Use these variables below to do so.
#
# Setup inspired by:
# https://www.digitalocean.com/community/tutorials/how-to-host-multiple-websites-securely-with-nginx-and-php-fpm-on-ubuntu-14-04
# Enables the pool generation machanism
php_create_pool: no
# Name of the pool config file
php_pool_name: "{{ php_base_name }}"
# Group to run the pool under
php_pool_group: www-data
# Where our pool-specific socker will live
php_pool_socket_path: "/var/run/php-fpm-{{ php_pool_name }}.sock"
# additionnal fastcgi params.
# example: 'PHP_VALUE "upload_max_filesize=3M \n post_max_size=3M"'
php_fastcgi_param: []
# Enable HTTP basic auth
php_http_basic_auth_enabled: false
php_http_basic_auth_message: 'Authorization required'
php_http_basic_auth_htpasswd_path: ''
php_http_basic_auth_accounts: []
# - username: bob
# password: whatever42
# - username: alice
# password: rocknroll42