Add standard nginx proxy to redirecto to the nas instance of lumio in technocopia.
This commit is contained in:
parent
7d1ba02c42
commit
b53c431c67
1 changed files with 30 additions and 0 deletions
30
lumio_nginx_config
Normal file
30
lumio_nginx_config
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
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;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue