proti0070 commited on
Commit
7d166a8
Β·
verified Β·
1 Parent(s): af84cb4

Create nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +35 -0
nginx.conf ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ server {
2
+ listen 7860;
3
+
4
+ # ── Monitoring dashboard ──────────────────────────────────────────────────
5
+ location /monitor {
6
+ proxy_pass http://127.0.0.1:8000/monitor;
7
+ proxy_set_header Host $host;
8
+ }
9
+
10
+ location /health {
11
+ proxy_pass http://127.0.0.1:8000/health;
12
+ proxy_set_header Host $host;
13
+ }
14
+
15
+ # ── Ollama API proxy ──────────────────────────────────────────────────────
16
+ location /api/ {
17
+ proxy_pass http://127.0.0.1:8000/api/;
18
+ proxy_http_version 1.1;
19
+ proxy_set_header Host $host;
20
+ proxy_read_timeout 600;
21
+ proxy_send_timeout 600;
22
+ proxy_buffering off;
23
+ }
24
+
25
+ # ── Root β†’ terminal (ttyd) ────────────────────────────────────────────────
26
+ location / {
27
+ proxy_pass http://127.0.0.1:8080/;
28
+ proxy_http_version 1.1;
29
+ proxy_set_header Upgrade $http_upgrade;
30
+ proxy_set_header Connection "upgrade";
31
+ proxy_set_header Host $host;
32
+ proxy_read_timeout 86400;
33
+ proxy_send_timeout 86400;
34
+ }
35
+ }