barisaydin commited on
Commit
81b3101
1 Parent(s): 7b0af5a

Upload nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +16 -0
nginx.conf ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }