Perl Inline C code inside nginx Perl module

2018-04-12 Thread Ondrej Jombik
We have some proprietary code in C language, which we cannot convert into Perl. We would like to use this C code in Perl nginx module. Code runs well under Perl's Inline C. However when I try to run Inline C code in nginx Perl module, it does not work. Not only this code does not work, in fact

Релиз Unit 1.0

2018-04-12 Thread Валентин Бартенев
Здравствуйте. Поздравляю всех с Днём космонавтики и рад сообщить, что сегодня состоялся релиз NGINX Unit 1.0. Изменения в Unit 1.0 12.04.2018 *) Изменение: объект конфигурации теперь расположен по пути "/config/". *) Добавление: базовая

Unit 1.0 release

2018-04-12 Thread Valentin V. Bartenev
Hello, I'm happy to congratulate you on International Day of Human Space Flight and glad to announce the release of NGINX Unit 1.0. Changes with Unit 1.012 Apr 2018 *) Change: configuration object moved into "/config/" path. *) Feature: basic

Re: Is the auto parameter of the worker_processes directive planned to support the Docker runtime?

2018-04-12 Thread Maxim Dounin
Hello! On Thu, Apr 12, 2018 at 10:33:36AM -0400, agile6v wrote: > Hi, Maxim Dounin > > Currently obtaining the number of CPU cores in Docker actually obtains the > number of CPU cores for the host, resulting in that the number of processes > started by "worker_processes auto" cannot match the

Re: max_fails=0 и no live upstreams while connecting to upstream

2018-04-12 Thread Maxim Dounin
Hello! On Wed, Apr 11, 2018 at 07:00:17PM +0200, Yury Lyakh wrote: > Господа, подскажите пожалуйста, > > В документации сказано что max_fais=0 отключает попадание апстрима в блэклист > на время из-за проблем с ним. > > То есть, как я понимаю постучались на бэкенд, получили 502 или еще что, >

Re: proxy pass и кодирование GET-параметров

2018-04-12 Thread gz
> Попробуйте https://github.com/openresty/set-misc-nginx-module Спасибо. Странно, что nginx не делает такой простой вещи. Posted at Nginx Forum: https://forum.nginx.org/read.php?21,279411,279420#msg-279420 ___ nginx-ru mailing list

Re: unknown directive "js_include"

2018-04-12 Thread Dmitry Volyntsev
On 12.04.2018 17:28, Dineshkumar wrote: Hi Dmitry, The module has been loaded in the nginx.conf file using the following load_module modules/ngx_http_js_module.so; and the compile module files are available in the path as well. Please note that RHEL5 packets are outdated (js_include was

Is the auto parameter of the worker_processes directive planned to support the Docker runtime?

2018-04-12 Thread agile6v
Hi, Maxim Dounin Currently obtaining the number of CPU cores in Docker actually obtains the number of CPU cores for the host, resulting in that the number of processes started by "worker_processes auto" cannot match the CPU resources requested by the container itself. For example, if the host

Re: unknown directive "js_include"

2018-04-12 Thread Dineshkumar
Hi Dmitry, The module has been loaded in the nginx.conf file using the following load_module modules/ngx_http_js_module.so; and the compile module files are available in the path as well. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279415,279417#msg-279417

Re: unknown directive "js_include"

2018-04-12 Thread Dmitry Volyntsev
On 12.04.2018 17:17, Dineshkumar wrote: Hi All, Im getting the following error when using nginscript module in RHEL 5 server. nginx: [emerg] unknown directive "js_include" in /etc/nginx/nginx.conf:13 Installed the nginx using the following RPM

unknown directive "js_include"

2018-04-12 Thread Dineshkumar
Hi All, Im getting the following error when using nginscript module in RHEL 5 server. nginx: [emerg] unknown directive "js_include" in /etc/nginx/nginx.conf:13 Installed the nginx using the following RPM https://nginx.org/packages/rhel/5/x86_64/RPMS/nginx-1.10.0-1.el5.ngx.x86_64.rpm Installed

RE: sub_filter (CSS,JS)

2018-04-12 Thread Reinis Rozitis
> It's working really well, but the issue is, references to their domain aren't > being filtered inside their CSS or JS files which are also loading via the > proxy URL. Typically it means that the response from the upstream comes compressed (gzipped) and sub_filter module doesn't handle that.

push directive is forcing local stream to fail

2018-04-12 Thread Vieri via nginx
Hi, I have RTMP clients streaming to my local nginx-rtmp server so others can view the stream via HTTP (HLS and DASH). I also push the RTMP stream to Youtube on a live channel. Pushing the stream to Youtube should be optional, in my case. In other words, if that fails for whatever reason, the

sub_filter (CSS,JS)

2018-04-12 Thread Adrian Acosta
Hi Everyone! We're using nginx as a reverse proxy for a staging system so customers can view the contents of their directories without a resolving domain. It's working really well, but the issue is, references to their domain aren't being filtered inside their CSS or JS files which are also

Re: proxy pass и кодирование GET-параметров

2018-04-12 Thread Alex Vorona
12.04.18 05:40, gz wrote: Добрый день. [...] Судя по всему, параметры, указанные в URI proxy_pass не URI-кодируются. Есть ли способы сформировать корректный запрос с произвольными параметрами? Попробуйте https://github.com/openresty/set-misc-nginx-module -- Alex Vorona