zhuyougu commited on
Commit
5f97ae3
1 Parent(s): 0f49c23

Create nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +39 -0
nginx.conf ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ worker_processes 1;
2
+
3
+ events {
4
+ worker_connections 1024;
5
+ }
6
+
7
+ http {
8
+ include mime.types;
9
+ default_type application/octet-stream;
10
+ sendfile on;
11
+ keepalive_timeout 65;
12
+
13
+ server {
14
+ listen 7860;
15
+ server_name localhost;
16
+ charset utf-8;
17
+
18
+ location / {
19
+ root /usr/share/nginx/html;
20
+ index index.html;
21
+ try_files $uri $uri/ /index.html;
22
+ }
23
+
24
+ location /prod-api/ {
25
+ proxy_set_header Host $http_host;
26
+ proxy_set_header X-Real-IP $remote_addr;
27
+ proxy_set_header REMOTE-HOST $remote_addr;
28
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
29
+ proxy_pass https://zhuyougu-api.hf.space/;
30
+ }
31
+ error_page 500 502 503 504 /50x.html;
32
+ location = /50x.html {
33
+ root html;
34
+ }
35
+ }
36
+
37
+
38
+ }
39
+