Skip to content

Commit 5e58429

Browse files
committed
Make nginx' document root configurable
1 parent d0077fd commit 5e58429

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ WORKDIR "${workdir}"
1515
HEALTHCHECK --interval=10s --start-period=90s CMD netstat -ltn | grep -c ":443"
1616

1717
ENV EXPIRATION_DAYS=30
18+
ENV NGINX_DOCUMENT_ROOT=/var/www/web
1819

1920
##
2021
# Drupal

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Use can use the following configuration in your `docker-compose.yml`:
6262

6363
```yaml
6464
environment:
65+
NGINX_DOCUMENT_ROOT: /var/www/web
6566
NGINX_PROXY_PASS: <no default>
6667
```
6768

@@ -81,6 +82,7 @@ Use can use the following configuration in your `docker-compose.yml`:
8182

8283
```yaml
8384
environment:
85+
NGINX_DOCUMENT_ROOT: /var/www/web
8486
NGINX_PROXY_PASS: app:3000
8587
```
8688

@@ -100,6 +102,7 @@ Use can use the following configuration in your `docker-compose.yml`:
100102

101103
```yaml
102104
environment:
105+
NGINX_DOCUMENT_ROOT: /var/www/web
103106
NGINX_FASTCGI_PASS_HOST: php
104107
NGINX_FASTCGI_PASS_PORT: 9000
105108
NGINX_CLIENT_MAX_BODY_SIZE: 128M

context/drupal/etc/nginx/templates/default.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ server {
66

77
include include.d/ssl.conf;
88

9-
root /var/www/web;
9+
root ${NGINX_DOCUMENT_ROOT};
1010

1111
disable_symlinks off;
1212

context/nextjs/etc/nginx/templates/default.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server {
22

33
include include.d/ssl.conf;
44

5-
root /var/www/web;
5+
root ${NGINX_DOCUMENT_ROOT};
66

77
location / {
88
proxy_pass ${NGINX_PROXY_PASS};

context/proxy/etc/nginx/templates/default.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server {
22

33
include include.d/ssl.conf;
44

5-
root /var/www/web;
5+
root ${NGINX_DOCUMENT_ROOT};
66

77
location / {
88
proxy_pass ${NGINX_PROXY_PASS};

context/storybook/etc/nginx/templates/default.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server {
22

33
include include.d/ssl.conf;
44

5-
root /var/www/web;
5+
root ${NGINX_DOCUMENT_ROOT};
66

77
location / {
88
proxy_pass ${NGINX_PROXY_PASS};

0 commit comments

Comments
 (0)