From 70f3ca8067bb988b84be6ffb5d8a3eac7deeb5f3 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Thu, 18 Nov 2021 18:25:04 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20be?= =?UTF-8?q?ta-=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=20nginx=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20http?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/beta/beta.omnireader_http | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 docs/beta/beta.omnireader_http diff --git a/docs/beta/beta.omnireader_http b/docs/beta/beta.omnireader_http new file mode 100644 index 00000000..dd467283 --- /dev/null +++ b/docs/beta/beta.omnireader_http @@ -0,0 +1,43 @@ +server { + listen 80; + server_name beta.omnireader.ru; + + 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:34081; + } + + location /ws { + proxy_pass http://127.0.0.1:34081; + 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 80; + server_name beta.omnireader.ru; + + return 301 https://$host$request_uri; +}