30 lines
943 B
Text
30 lines
943 B
Text
server {
|
|
|
|
server_name amargi.us;
|
|
|
|
location / {
|
|
proxy_pass http://nas-8-01:3000; # Replace with the port Open WebUI is running on
|
|
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;
|
|
# WebSocket support
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_read_timeout 3600;
|
|
proxy_send_timeout 3600;
|
|
proxy_buffering off;
|
|
}
|
|
|
|
include snippets/lets-encrypt.conf;
|
|
listen 443 ssl; # managed by Certbot
|
|
|
|
}
|
|
server {
|
|
server_name agargi.us;
|
|
listen 80;
|
|
listen [::]:80;
|
|
return 301 https:///$host$request_uri;
|
|
}
|