Spaces:
Sleeping
Sleeping
barisaydin
commited on
Commit
•
5c23268
1
Parent(s):
66c7faa
Update nginx.conf
Browse files- nginx.conf +15 -7
nginx.conf
CHANGED
@@ -1,8 +1,16 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
}
|