File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Intentionally blank
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ http {
51
51
52
52
access_log /data/logs/default.log proxy;
53
53
54
+ # Dynamically generated resolvers file
55
+ include /etc/nginx/conf.d/include/resolvers.conf;
56
+
57
+ # Files generated by NPM
54
58
include /etc/nginx/conf.d/*.conf;
55
59
include /data/nginx/proxy_host/*.conf;
56
60
include /data/nginx/redirection_host/*.conf;
59
63
}
60
64
61
65
stream {
66
+ # Files generated by NPM
62
67
include /data/nginx/stream/*.conf;
63
68
}
64
69
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
+ # Create required folders
3
4
mkdir -p /tmp/nginx/body \
4
5
/var/log/nginx \
5
6
/data/nginx \
@@ -17,4 +18,8 @@ mkdir -p /tmp/nginx/body \
17
18
touch /var/log/nginx/error.log && chmod 777 /var/log/nginx/error.log
18
19
chown root /tmp/nginx
19
20
21
+ # Dynamically generate resolvers file
22
+ echo resolver $(awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf) ";" > /etc/nginx/conf.d/include/resolvers.conf
23
+
24
+ # Run
20
25
exec nginx
You can’t perform that action at this time.
0 commit comments