We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 880947f commit 3695c79Copy full SHA for 3695c79
1 file changed
docker/nginx/etc/conf.d/default.conf
@@ -1,10 +1,15 @@
1
+# upstream nodeSwarm{
2
+# server $node_host:3030;
3
+# }
4
+
5
server {
6
listen 80;
7
server_name localhost;
8
9
location / {
10
## TODO Gets the host name and port from the environment variable
11
## Build a nginx image with the lua module
12
+ set_by_lua $node_host 'return os.getenv("NODE_HOST")';
13
proxy_pass http://node:3030;
14
##set Host header
15
proxy_set_header Host $host;
0 commit comments