hequ commited on
Commit
12c6b51
·
verified ·
1 Parent(s): 9c898b2

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +2 -5
nginx.conf CHANGED
@@ -1,16 +1,12 @@
1
  worker_processes auto;
2
  pid /tmp/nginx.pid;
3
-
4
- # 所有错误日志输出到容器 stderr
5
  error_log /dev/stderr notice;
6
 
7
  events { worker_connections 1024; }
8
 
9
  http {
10
- # 访问日志输出到容器 stdout
11
  access_log /dev/stdout;
12
 
13
- # 所有临时目录指向 /tmp(任意用户可写)
14
  client_body_temp_path /tmp/nginx/client_temp;
15
  proxy_temp_path /tmp/nginx/proxy_temp;
16
  fastcgi_temp_path /tmp/nginx/fastcgi_temp;
@@ -19,6 +15,7 @@ http {
19
 
20
  sendfile on;
21
  keepalive_timeout 65;
 
22
  server {
23
  listen 8080;
24
  server_name _;
@@ -26,7 +23,7 @@ http {
26
  location / {
27
  proxy_set_header Host $host;
28
  proxy_set_header X-Real-IP $remote_addr;
29
- proxy_pass http://127.0.0.1:3001; # 后端 /one-api 监听 3001
30
  }
31
  }
32
  }
 
1
  worker_processes auto;
2
  pid /tmp/nginx.pid;
 
 
3
  error_log /dev/stderr notice;
4
 
5
  events { worker_connections 1024; }
6
 
7
  http {
 
8
  access_log /dev/stdout;
9
 
 
10
  client_body_temp_path /tmp/nginx/client_temp;
11
  proxy_temp_path /tmp/nginx/proxy_temp;
12
  fastcgi_temp_path /tmp/nginx/fastcgi_temp;
 
15
 
16
  sendfile on;
17
  keepalive_timeout 65;
18
+
19
  server {
20
  listen 8080;
21
  server_name _;
 
23
  location / {
24
  proxy_set_header Host $host;
25
  proxy_set_header X-Real-IP $remote_addr;
26
+ proxy_pass http://127.0.0.1:3001;
27
  }
28
  }
29
  }