upstream llamahost {  # Define a group of backend servers
        server 10.242.70.17:11434;
}

server {
    listen       10880;
    listen       [::]:10880;
    server_name  llama.site.sailforce.online;
    root         /var/www/html;

    client_max_body_size 2048m;
    # Load configuration files for the default server block.
    location / {
       proxy_pass   http://llamahost;
       #proxy_set_header Host 127.0.0.1:11434;
       proxy_http_version 1.1; # Required for WebSockets
       proxy_set_header Upgrade $http_upgrade;  # Required for WebSockets
       proxy_set_header Connection "upgrade";   # Required for WebSockets
       proxy_set_header Host             $host:$server_port;
       # proxy_set_header X-Real-IP $remote_addr;
       # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       # proxy_set_header X-Forwarded-Proto $scheme;
    }
    
    error_page 404 /404.html;
        location = /40x.html {
    }

    error_page 500 502 503 504 /50x.html;
        location = /50x.html {
    }

}


