-
Notifications
You must be signed in to change notification settings - Fork 30
/
conf.yml
160 lines (150 loc) · 4.08 KB
/
conf.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
---
# Generic vhost generator configuration file.
# Location: /etc/vhost-gen/conf.yml
#
# See: https://github.com/devilbox/vhost-gen
#
# If not specified or file is missing the following
# default values will be merged to your current (if any)
# configuration:
#
# server: nginx
# conf_dir: /etc/nginx/conf.d
# custom:
# vhost:
# port:
# name:
# prefix:
# suffix:
# docroot:
# suffix:
# log:
# access:
# prefix:
# stdout: no
# error:
# prefix:
# stderr: no
# dir:
# create: no
# path: /var/log/nginx
# listen:
# enable: no
# php_fpm:
# enable: no
# address: php
# port: 9000
# alias: []
# deny: []
# server_status:
# enable: no
# alias: /server-status
# The server type determines which template
# from etc/templates/ will be chosen.
# Allowed server types:
# server: apache22
# server: apache24
# server: nginx
server: nginx
# Where to store the generated configuration files.
# This must be a directory the web server will read
# configuration files from.
conf_dir: /etc/nginx/conf.d
# Custom directive
# Everything specified here will be directly replaced
# into the corresponding vhost directive:
# nginx: server { HERE }
# apache: <VirtualHost *:80> HERE </VirtualHost>
#
# How to add multiline strings?
#
# custom: |
# custom statement 1
# custom statement 2
custom:
# Vhost definition
vhost:
# What port should this virtual host listen on
port: 80
ssl_port: 443
# The virtual host name is specified as an command line argument
# to vhost-gen via '-n', however it is possible
# to prepend and/or append additional name strings.
name:
prefix:
suffix: .loc
# The document root directory is specified as an command line argument
# to vhost-gen via '-p', however it is possible
# to prepend another subdirectory here.
docroot:
suffix: htdocs
# Array of indecies to serve as default files (e.g.: index.php, index.html, etc)
index:
- index.php
- index.html
- index.htm
# SSL Definition
ssl:
http2: True
dir_crt: /etc/httpd/cert
dir_key: /etc/httpd/cert
protocols: 'TLSv1 TLSv1.1 TLSv1.2'
honor_cipher_order: 'on'
ciphers: 'HIGH:!aNULL:!MD5'
# Log definition
log:
# Log file settings (error/access log)
access:
# By default the vhost name is used for log file names.
# You can also prepand an additional string to the access log
# as shown here:
# <prefix><vhost>-access.log
prefix: ''
# For use inside a docker container, enable this in order
# to redirect the access log to stdout instead of to file.
# NOTE: When enabling this, the prefix will have no effect and the access
# log will be stored under /tmp/www-access.log which will be a symlink of
# /dev/stdout
stdout: no
error:
# By default the vhost name is used for log file names.
# You can also prepand an additional string to the error log
# as shown here:
# <prefix><vhost>-error.log
prefix: ''
# For use inside a docker container, enable this in order
# to redirect the error log to stderr instead of to file.
# NOTE: When enabling this, the prefix will have no effect and the error
# log will be stored under /tmp/www-error.log which will be a symlink of
# /dev/stderr
stderr: no
# Directory to store log files in.
# Also define if the directory should be created or not.
dir:
create: yes
path: /var/log/nginx
# Enable PHP-FPM
php_fpm:
enable: yes
# Hostname or IP address
address: php
port: 9000
# Timeout to upstream FPM service
timeout: 180
# Create additional aliases
alias:
- alias: /my-api/
path: /var/www/default/api
# Allow cross-domain-request to this alias from the hosts/origin
# specified by the below defined regex
xdomain_request:
enable: yes
origin: 'http(s)?://(.*)$'
# Denies locations
deny:
- alias: '/\.git'
- alias: '/\.ht.*'
# Enable server status on the following alias
server_status:
enable: yes
alias: /server-status/