-
-
Notifications
You must be signed in to change notification settings - Fork 585
/
nginx-site-drupal7.conf
42 lines (29 loc) · 1.12 KB
/
nginx-site-drupal7.conf
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
# ddev drupal7 config
# You can override ddev's configuration by placing an edited copy
# of this config (or one of the other ones) in .ddev/nginx-site.conf
# See https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/#providing-custom-nginx-configuration
# Set https to 'on' if x-forwarded-proto is https
map $http_x_forwarded_proto $fcgi_https {
default off;
https on;
}
server {
listen 80; ## listen for ipv4; this line is default and implied
# The WEBSERVER_DOCROOT variable is substituted with
# its value when the container is started.
root $WEBSERVER_DOCROOT;
include /etc/nginx/monitoring.conf;
include /etc/nginx/nginx_drupal7.conf;
include /mnt/ddev_config/nginx/*.conf;
}
server {
listen 443 ssl;
# The WEBSERVER_DOCROOT variable is substituted with
# its value when the container is started.
root $WEBSERVER_DOCROOT;
ssl_certificate /etc/ssl/certs/master.crt;
ssl_certificate_key /etc/ssl/certs/master.key;
include /etc/nginx/monitoring.conf;
include /etc/nginx/nginx_drupal7.conf;
include /mnt/ddev_config/nginx/*.conf;
}