🕵️Proxy Setup
Setting up LANraragi behind a proxy (reverse proxy setup)
http {
client_max_body_size 0; <----------------------- This line here
}
# Upgrade and Connection proxy header defaults
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name lanraragi.[REDACTED].net;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
index index.php index.html index.htm;
server_name lanraragi.[REDACTED].net;
client_max_body_size 0; <---------- And this line here to disable upload limit
proxy_max_temp_file_size 0; <---------- And this line here to support large downloads
# Cert Stuff Omitted
location / {
proxy_pass http://0.0.0.0:3000;
proxy_http_version 1.1;
<----- The two following lines are needed for batch tagger support with SSL ----->
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}Setting up LANraragi to use a proxy for outbound network requests
Last updated