barisaydin commited on
Commit
5c23268
1 Parent(s): 66c7faa

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +15 -7
nginx.conf CHANGED
@@ -1,8 +1,16 @@
1
- location / {
2
- access_by_lua_file /usr/local/openresty/nginx/lua/validate_api_key.lua;
3
- proxy_pass http://127.0.0.1:7860;
4
- proxy_set_header Host $host;
5
- proxy_set_header X-Real-IP $remote_addr;
6
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
7
- proxy_set_header X-Forwarded-Proto $scheme;
 
 
 
 
 
 
 
 
8
  }
 
1
+ events {}
2
+
3
+ http {
4
+ server {
5
+ listen 80;
6
+
7
+ location / {
8
+ access_by_lua_file /usr/local/openresty/nginx/lua/validate_api_key.lua;
9
+ proxy_pass http://127.0.0.1:11434;
10
+ proxy_set_header Host $host;
11
+ proxy_set_header X-Real-IP $remote_addr;
12
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
13
+ proxy_set_header X-Forwarded-Proto $scheme;
14
+ }
15
+ }
16
  }