Skip to content

Commit 2c4f6cb

Browse files
committed
nginx default config
1 parent 0660f39 commit 2c4f6cb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

docker/nginx/etc/conf.d/default.conf

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
5+
location / {
6+
## TODO Gets the host name and port from the environment variable
7+
## Build a nginx image with the lua module
8+
proxy_pass http://node:3030;
9+
##set Host header
10+
proxy_set_header Host $host;
11+
12+
##set X-Real-IP header
13+
proxy_set_header X-Real-IP $remote_addr;
14+
15+
##set Protocol header
16+
proxy_set_header Protocol $server_protocol;
17+
18+
##set Port header
19+
proxy_set_header Port $server_port;
20+
21+
##disabele cache on development mode
22+
proxy_cache off;
23+
}
24+
25+
error_page 404 /404.html;
26+
27+
# redirect server error pages to the static page /50x.html
28+
#
29+
error_page 500 502 503 504 /50x.html;
30+
location = /50x.html {
31+
root /usr/share/nginx/html;
32+
}
33+
}

0 commit comments

Comments
 (0)