A cross platform Audiobookshelf client for Android and iOS
Dart
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
map $http_x_forwarded_proto $forwarded_proto {
default $http_x_forwarded_proto;
'' $scheme;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
client_max_body_size 10240M;
gzip on;
gzip_comp_level 6;
gzip_min_length 1024;
gzip_proxied any;
gzip_vary on;
gzip_types
application/javascript
application/json
application/manifest+json
application/wasm
image/svg+xml
text/css;
location = /absorb {
return 308 /absorb/;
}
location = /absorb/index.html {
add_header Cache-Control "no-cache";
}
location = /absorb/flutter_service_worker.js {
add_header Cache-Control "no-cache";
}
location ^~ /absorb/ {
try_files $uri $uri/ /absorb/index.html;
}
location / {
proxy_pass ${ABS_UPSTREAM};
proxy_http_version 1.1;
proxy_set_header Host $http_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-Host $http_host;
proxy_set_header X-Forwarded-Proto $forwarded_proto;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
proxy_buffering off;
}
}