Как кешировать видео с сохранением функциональности модуля ngx_http_mp4_module?

2019-04-09 Thread Евгений Степаненко
Здравствуйте, В данный момент раздаем видео (ngx_http_mp4_module) с файлового сервера (35TB) и начали упираться в дисковую производительность. Хочу настроить кеширование популярных видеофайлов с помощью Nginx. Пробовал с proxy_store, но как контролировать объем кеша, ведь нет вытеснения по LRU?

underscores_in_headers - баг в документации ?

2019-04-09 Thread Илья Шипицин
привет! допустим, у нас своеобразное приложение. с подчеркиванием в хедерах (не спрашивайте, у меня нет идей, чем заправлялись разработчики) читаем https://nginx.org/ru/docs/http/ngx_http_core_module.html#underscores_in_headers ок. директиву надо писать в дефолт сервере. пишем log_format

Re: Ограничение доступа к папке по IP

2019-04-09 Thread Vvedensky
Да есть. Спасибо, нашёл ошибку, она была в другом месте. Posted at Nginx Forum: https://forum.nginx.org/read.php?21,283658,283697#msg-283697 ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: Ограничение доступа к папке по IP

2019-04-09 Thread Vvedensky
Удалось разобраться: проблема была в другом месте. Но за рекомендации спасибо. Использование отдельных лог-файлов очень может быть полезным для отладки, сам бы не додумался. Про break - считал, что встретив этот оператор nginx прерывает дальнейшую работу (т.е. не пойдёт проверять следующий

Re: https://hg.nginx.org certificate error ?

2019-04-09 Thread George
yeah updated mercurial works https://forum.nginx.org/read.php?2,283686,283694#msg-283694 though centos 7 still will use non-SNI supported mercurial 2.6.2 so folks doing hg clone for njs repo will always have this issue. Posted at Nginx Forum:

Re: https://hg.nginx.org certificate error ?

2019-04-09 Thread George
okay part of the problem is centos 7 uses mercurial 2.6.2 and fix is to update to mercurial >2.7.9 for SNI support hg --version Mercurial Distributed SCM (version 2.6.2) (see http://mercurial.selenic.com for more information) Copyright (C) 2005-2012 Matt Mackall and others This is free software;

Re: https://hg.nginx.org certificate error ?

2019-04-09 Thread Maxim Dounin
Hello! On Tue, Apr 09, 2019 at 10:32:14AM -0400, George wrote: > for that i get > > echo -n | openssl s_client -connect hg.nginx.org:443 -servername > hg.nginx.org > CONNECTED(0003) > depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3 > verify return:1 > depth=1 C = US, O = Let's

Re: https://hg.nginx.org certificate error ?

2019-04-09 Thread George
looks like hg clone is a non-SNI request so looked up pubserv.nginx.com's SSL cert *.nginx.com common name so maybe best to add *.nginx.org as well to pubserv.nginx.com server's SSL cert ? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283686,283692#msg-283692

Re: https://hg.nginx.org certificate error ?

2019-04-09 Thread George
testssl 3.0rc4 output for testssl hg.nginx.org:443 Testing server defaults (Server Hello) TLS extensions (standard)"server name/#0" "renegotiation info/#65281" "EC point formats/#11" "session ticket/#35" "heartbeat/#15" "next protocol/#13172" "application layer protocol negotiation/#16"

Re: redirect from api.example.com/service/{domain} to other servers

2019-04-09 Thread Maxim Dounin
Hello! On Tue, Apr 09, 2019 at 05:09:28PM +0300, Eli Fish wrote: > We have nginx server that redirect service requests by server_name using > proxy_pass to upstream: [...] This is a mailing list dedicated to nginx development. For question on how to configure nginx, please use nginx@ mailing

redirect from api.example.com/service/{domain} to other servers

2019-04-09 Thread Eli Fish
We have nginx server that redirect service requests by server_name using proxy_pass to upstream: nginx conf: server { server_name requestsproxy-rest.us.example.com; location / { . proxy_pass http://Requestsproxy-Rest; and the upstream file: upstream Requestsproxy-Rest {

Re: https://hg.nginx.org certificate error ?

2019-04-09 Thread Maxim Dounin
Hello! On Tue, Apr 09, 2019 at 09:17:47AM -0400, George wrote: > Hi when I try to clone njs repo I am getting the error below > > hg clone https://hg.nginx.org/njs/ > abort: hg.nginx.org certificate error: certificate is for *.nginx.com, > nginx.com > (configure hostfingerprint >

https://hg.nginx.org certificate error ?

2019-04-09 Thread George
Hi when I try to clone njs repo I am getting the error below hg clone https://hg.nginx.org/njs/ abort: hg.nginx.org certificate error: certificate is for *.nginx.com, nginx.com (configure hostfingerprint bd:90:5e:95:b4:51:d8:0b:b0:36:41:6f:99:a7:80:01:4e:cf:ee:c2 or use --insecure to connect

nginx-1.15.11

2019-04-09 Thread Maxim Dounin
Изменения в nginx 1.15.11 09.04.2019 *) Исправление: в директиве ssl_stapling_file на Windows. -- Maxim Dounin http://nginx.org/ ___ nginx-ru mailing list nginx-ru@nginx.org

nginx-1.15.11

2019-04-09 Thread Maxim Dounin
Changes with nginx 1.15.11 09 Apr 2019 *) Bugfix: in the "ssl_stapling_file" directive on Windows. -- Maxim Dounin http://nginx.org/ ___ nginx mailing list nginx@nginx.org

[nginx] release-1.15.11 tag

2019-04-09 Thread Maxim Dounin
details: https://hg.nginx.org/nginx/rev/a6e23e343081 branches: changeset: 7491:a6e23e343081 user: Maxim Dounin date: Tue Apr 09 16:00:30 2019 +0300 description: release-1.15.11 tag diffstat: .hgtags | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (8 lines): diff

nginx log : $upstream_response_time is larger than $request_time

2019-04-09 Thread mchtech
I use nginx(1.15.3) as a reverse-proxy, and encounter a problem that $upstream_response_time is larger than $request_time" in log files. According to nginx documentation, $upstream_response_time keeps time spent on receiving the response from the upstream server; the time is kept in seconds

Re: Ограничение доступа к папке по IP

2019-04-09 Thread Илья Шипицин
а локейшен "/" тоже есть ? вс, 7 апр. 2019 г. в 22:16, Vvedensky : > Здравствуйте. > Необходимо ограничить доступ к файлам папки /orders-files (в ней содержатся > файлы с расширением doc) по ip, делаю так: > location ^~ /orders-files/ { > allow 123.45.678.90; >

Re: Ограничение доступа к папке по IP

2019-04-09 Thread Иван
Здравствуйте! А зачем break в этих локейшенах? Сходу ответа на Ваш вопрос у меня нет, но попробуйте сначала точно выяснить куда приходит запрос: для каждого локейшена отдельный лог файл и\или return 444 по очереди в каждый локейшен.  Как точно узнаете, если всё еще будет не понятно, давайте