Twan07 commited on
Commit
ca48e74
·
verified ·
1 Parent(s): deb90d8

Update nginx/nginx.conf

Browse files
Files changed (1) hide show
  1. nginx/nginx.conf +6 -2
nginx/nginx.conf CHANGED
@@ -1,11 +1,15 @@
1
- events {}
2
-
3
  http {
 
 
 
 
4
  server {
5
  listen 7860;
6
 
7
  location /api/ {
8
  proxy_pass http://127.0.0.1:3000;
 
 
9
  }
10
 
11
  location / {
 
 
 
1
  http {
2
+ client_body_temp_path /home/node/app/nginx/tmp/body;
3
+ proxy_temp_path /home/node/app/nginx/tmp/proxy;
4
+ fastcgi_temp_path /home/node/app/nginx/tmp/fastcgi;
5
+
6
  server {
7
  listen 7860;
8
 
9
  location /api/ {
10
  proxy_pass http://127.0.0.1:3000;
11
+ proxy_set_header Host $host;
12
+ proxy_set_header X-Real-IP $remote_addr;
13
  }
14
 
15
  location / {