File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments