31 lines
976 B
Plaintext
31 lines
976 B
Plaintext
server {
|
|
# Nginx versions 1.25+
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
http2 on;
|
|
|
|
server_name ollama.loadingm.xyz;
|
|
|
|
include /etc/nginx/snippets/letsencrypt.conf;
|
|
# include /etc/nginx/snippets/authelia-location.conf;
|
|
location /ws/ {
|
|
proxy_pass http://ollama-webui:8080;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $host;
|
|
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;
|
|
proxy_set_header X-Forwarded-Protocol $scheme;
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
}
|
|
|
|
location / {
|
|
include /etc/nginx/snippets/proxy.conf;
|
|
# include /etc/nginx/snippets/authelia-authrequest.conf;
|
|
# Proxy main ollama traffic
|
|
proxy_pass http://ollama-webui:8080;
|
|
}
|
|
}
|