Поправка конфигов nginx

This commit is contained in:
Book Pauk
2022-12-18 13:30:47 +07:00
parent c3e099f095
commit f00700cb41
2 changed files with 53 additions and 1 deletions

View File

@@ -61,3 +61,55 @@ server {
return 301 https://$host$request_uri;
}
server {
listen 80;
server_name b.beta.omnireader.ru;
set $liberama http://127.0.0.1:34081;
client_max_body_size 50m;
proxy_read_timeout 1h;
gzip on;
gzip_min_length 1024;
gzip_proxied expired no-cache no-store private auth;
gzip_types *;
location @liberama {
proxy_pass $liberama;
}
location /api {
proxy_pass $liberama;
}
location /ws {
proxy_pass $liberama;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 600s;
}
location /tmp {
root /home/beta.liberama/.liberama/public-files;
types { } default_type "application/xml; charset=utf-8";
add_header Content-Encoding gzip;
try_files $uri @liberama;
}
location /upload {
root /home/beta.liberama/.liberama/public-files;
try_files $uri @liberama;
}
location / {
root /home/beta.liberama/.liberama/public;
location ~* \.(?:manifest|appcache|html)$ {
expires -1;
}
}
}

View File

@@ -1,6 +1,6 @@
server {
listen 80;
server_name beta.omnireader.ru;
server_name beta.omnireader.ru b.beta.omnireader.ru;
set $liberama http://127.0.0.1:34081;
client_max_body_size 50m;