Skip to content

Commit fd44517

Browse files
authored
Merge pull request dtan4#2 from unblee/add-include
Add include in nginx.conf
2 parents 0054de0 + 362f515 commit fd44517

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM nginx:1.11.9-alpine
33
# for htpasswd command
44
RUN apk add --no-cache --update \
55
apache2-utils
6+
RUN rm -f /etc/nginx/conf.d/*
67

78
ENV SERVER_NAME example.com
89
ENV PORT 80

files/nginx.conf.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ http {
1515
listen ##PORT##;
1616
server_name ##SERVER_NAME##;
1717

18+
include /etc/nginx/conf.d/*.conf;
19+
1820
location / {
1921
proxy_pass ##PROXY_PASS##;
2022
auth_basic "Restricted";

0 commit comments

Comments
 (0)