|
@@ -58,11 +58,48 @@ server {
|
|
|
return 301 https://$host$request_uri;
|
|
|
}
|
|
|
|
|
|
+server {
|
|
|
+ listen 80;
|
|
|
+ server_name b.liberama.top;
|
|
|
+
|
|
|
+ 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 /api {
|
|
|
+ proxy_pass http://127.0.0.1:55081;
|
|
|
+ }
|
|
|
+
|
|
|
+ location /ws {
|
|
|
+ proxy_pass http://127.0.0.1:55081;
|
|
|
+ proxy_http_version 1.1;
|
|
|
+ proxy_set_header Upgrade $http_upgrade;
|
|
|
+ proxy_set_header Connection "upgrade";
|
|
|
+ }
|
|
|
+
|
|
|
+ location / {
|
|
|
+ root /home/beta.liberama/public;
|
|
|
+
|
|
|
+ location /tmp {
|
|
|
+ types { } default_type "application/xml; charset=utf-8";
|
|
|
+ add_header Content-Encoding gzip;
|
|
|
+ }
|
|
|
+
|
|
|
+ location ~* \.(?:manifest|appcache|html)$ {
|
|
|
+ expires -1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
server {
|
|
|
listen 23480;
|
|
|
server_name flibusta_proxy;
|
|
|
|
|
|
- valid_referers omnireader.ru beta.omnireader.ru liberama.top popup.liberama.top;
|
|
|
+ valid_referers omnireader.ru beta.omnireader.ru liberama.top b.liberama.top;
|
|
|
|
|
|
if ($invalid_referer) {
|
|
|
return 403;
|
|
@@ -79,7 +116,7 @@ server {
|
|
|
listen 23481;
|
|
|
server_name flibusta_proxy_static;
|
|
|
|
|
|
- valid_referers omnireader.ru beta.omnireader.ru liberama.top popup.liberama.top;
|
|
|
+ valid_referers omnireader.ru beta.omnireader.ru liberama.top b.liberama.top;
|
|
|
|
|
|
if ($invalid_referer) {
|
|
|
return 403;
|