[PATCH] Allowed nesting arbitrary prefix "location" in regex "location"

2023-09-04 Thread Valentin V . Bartenev
# HG changeset patch # User Valentin Bartenev # Date 1693854233 -10800 # Mon Sep 04 22:03:53 2023 +0300 # Node ID c706913db63c6862c13a0a540cdc37be0ccf0c81 # Parent daf8f5ba23d8e9955b22782d945f9c065f4b6baa Allowed nesting arbitrary prefix "location" in regex "location". Previously, only

[PATCH] Fixed port ranges support in the listen directive

2022-12-18 Thread Valentin V . Bartenev
# HG changeset patch # User Valentin Bartenev # Date 1671388142 -10800 # Sun Dec 18 21:29:02 2022 +0300 # Node ID 2af1287d2da744335932f6dca345618f7b80d1c1 # Parent 3108d4d668e4b907868b815f0441d4c893bf4188 Fixed port ranges support in the listen directive. Ports difference must be respected

[nginx-announce] unit-1.26.1

2021-12-02 Thread Valentin V. Bartenev
.nginx.org/pipermail/unit/2021-November/000288.html Thank you again for keeping your finger on the pulse, reporting issues and submitting feature requests via our GitHub issue tracker: - https://github.com/nginx/unit/issues Stay tuned! wbr, Valentin V

Unit 1.26.1 release

2021-12-02 Thread Valentin V. Bartenev
.nginx.org/pipermail/unit/2021-November/000288.html Thank you again for keeping your finger on the pulse, reporting issues and submitting feature requests via our GitHub issue tracker: - https://github.com/nginx/unit/issues Stay tuned! wbr, Valentin V

[nginx-announce] unit-1.26.0

2021-11-19 Thread Valentin V. Bartenev
Fedora 35. Other major features that we are preparing for the next release include: - basic statistics API for monitoring Unit instances - various variables for different aspects of request and connection data - customization of access log format with variables - custom variables out of regexp captures on various request parameters - simple request rewrite using variables - command-line tool to simplify the use of Unit's control socket API There probably will be even more. To participate, share your ideas, or discuss new features, you're welcome to visit Unit's issue tracker on GitHub: - https://github.com/nginx/unit/issues Stay tuned! wbr, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-announce

Unit 1.26.0 release

2021-11-19 Thread Valentin V. Bartenev
Fedora 35. Other major features that we are preparing for the next release include: - basic statistics API for monitoring Unit instances - various variables for different aspects of request and connection data - customization of access log format with variables - custom variables out of regexp captures on various request parameters - simple request rewrite using variables - command-line tool to simplify the use of Unit's control socket API There probably will be even more. To participate, share your ideas, or discuss new features, you're welcome to visit Unit's issue tracker on GitHub: - https://github.com/nginx/unit/issues Stay tuned! wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[nginx-announce] unit-1.25.0

2021-08-19 Thread Valentin V. Bartenev
API - Unit CLI utility tool - App prototype processes to reduce memory usage, share the PHP opcache, and improve the handling of apps isolation - njs integration (https://nginx.org/en/docs/njs/index.html) - .NET Core language module prototype Some of them bound to appear in the next release. Stay tuned! wbr, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-announce

Unit 1.25.0 release

2021-08-19 Thread Valentin V. Bartenev
API - Unit CLI utility tool - App prototype processes to reduce memory usage, share the PHP opcache, and improve the handling of apps isolation - njs integration (https://nginx.org/en/docs/njs/index.html) - .NET Core language module prototype Some of them bound to appear in the next release. Stay tuned! wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[nginx-announce] unit-1.24.0

2021-05-27 Thread Valentin V. Bartenev
. That's all for today, but even more exciting features are poised for the upcoming releases: - statistics API - process control API - variables from regexp captures in the "match" object - simple request rewrites using variables - variables suppor

Unit 1.24.0 release

2021-05-27 Thread Valentin V. Bartenev
. That's all for today, but even more exciting features are poised for the upcoming releases: - statistics API - process control API - variables from regexp captures in the "match" object - simple request rewrites using variables - variables suppor

[nginx-announce] unit-1.23.0

2021-03-25 Thread Valentin V. Bartenev
Timo Stark, our own PM Engineer. Recently, he started regularly streaming on Twitch and YouTube: - https://www.twitch.tv/h30ne - https://www.youtube.com/Tippexs91 Tomorrow (March 26), at 10 p.m. CET (or 2 p.m. PDT), he is going on air to livestream his using Unit's brand-

Unit 1.23.0 release

2021-03-25 Thread Valentin V. Bartenev
Timo Stark, our own PM Engineer. Recently, he started regularly streaming on Twitch and YouTube: - https://www.twitch.tv/h30ne - https://www.youtube.com/Tippexs91 Tomorrow (March 26), at 10 p.m. CET (or 2 p.m. PDT), he is going on air to livestream his using Unit's brand-

Unit 1.22.0 release

2021-02-04 Thread Valentin V. Bartenev
to process isolation. As always, we encourage you to follow our roadmap on GitHub, where your ideas and requests are more than welcome: - https://github.com/orgs/nginx/projects/1 Stay tuned! wbr, Valentin V. Bartenev ___ nginx mailing list nginx@n

[nginx-announce] unit-1.22.0

2021-02-04 Thread Valentin V. Bartenev
to process isolation. As always, we encourage you to follow our roadmap on GitHub, where your ideas and requests are more than welcome: - https://github.com/orgs/nginx/projects/1 Stay tuned! wbr, Valentin V. Bartenev ___ nginx-announce mailing list

Unit 1.21.0 release

2020-11-19 Thread Valentin V. Bartenev
ports.org/www/unit/ We encourage you to follow our roadmap on GitHub, where your ideas and requests are always more than welcome: - https://github.com/orgs/nginx/projects/1 Stay tuned! wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[nginx-announce] unit-1.21.0

2020-11-19 Thread Valentin V. Bartenev
ports.org/www/unit/ We encourage you to follow our roadmap on GitHub, where your ideas and requests are always more than welcome: - https://github.com/orgs/nginx/projects/1 Stay tuned! wbr, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-announce

NGINX Unit team is hiring C devs

2020-10-21 Thread Valentin V. Bartenev
/NGINX/job/Cork-NGINX/Software-Engineer_RP1018735 More information about the project: https://unit.nginx.org/ wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[nginx-announce] unit-1.20.0

2020-10-08 Thread Valentin V. Bartenev
pport regular expressions; working on keepalive connection caching; adding multithreading to application modules; and finally, fabricating the metrics API! We encourage you to follow our roadmap on GitHub, where your ideas and requests are always more than welcome: - https://

Unit 1.20.0 release

2020-10-08 Thread Valentin V. Bartenev
pport regular expressions; working on keepalive connection caching; adding multithreading to application modules; and finally, fabricating the metrics API! We encourage you to follow our roadmap on GitHub, where your ideas and requests are always more than welcome: - https://

[nginx-announce] unit-1.19.0

2020-08-13 Thread Valentin V. Bartenev
//www.nginx.com/blog/filesystem-isolation-nginx-unit/ Stay tuned! wbr, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-announce

Unit 1.19.0 release

2020-08-13 Thread Valentin V. Bartenev
//www.nginx.com/blog/filesystem-isolation-nginx-unit/ Stay tuned! wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[nginx-announce] unit-1.18.0

2020-05-28 Thread Valentin V. Bartenev
ophisticated request matching rules. Check our website to know more about the new option: - https://unit.nginx.org/configuration/#targets To learn more about request matching rules: - https://unit.nginx.org/configuration/#condition-matching Finally, see here for more howtos: - https://unit.n

Unit 1.18.0 release

2020-05-28 Thread Valentin V. Bartenev
ophisticated request matching rules. Check our website to know more about the new option: - https://unit.nginx.org/configuration/#targets To learn more about request matching rules: - https://unit.nginx.org/configuration/#condition-matching Finally, see here for more howtos:

[nginx-announce] unit-1.17.0

2020-04-16 Thread Valentin V. Bartenev
. *) Bugfix: broken build on DragonFly BSD; the bug had appeared in 1.16.0. Please also see a blog post about the new features of our two previous releases: - https://www.nginx.com/blog/nginx-unit-1-16-0-now-available/ To keep the finger on the pulse, refer to our further plans in the roadmap here: - https://github.com/orgs/nginx/projects/1 Stay healthy, stay home! wbr, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-announce

Unit 1.17.0 release

2020-04-16 Thread Valentin V. Bartenev
. *) Bugfix: broken build on DragonFly BSD; the bug had appeared in 1.16.0. Please also see a blog post about the new features of our two previous releases: - https://www.nginx.com/blog/nginx-unit-1-16-0-now-available/ To keep the finger on the pulse, refer to our further plans in the roadmap here: - https://github.com/orgs/nginx/projects/1 Stay healthy, stay home! wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[nginx-announce] unit-1.16.0

2020-03-12 Thread Valentin V. Bartenev
mbination with non-negative patterns. *) Bugfix: Java Spring applications failed to run; the bug had appeared in 1.10.0. *) Bugfix: PHP 7.4 was broken if it was built with thread safety enabled. *) Bugfix: compatibility issues with some Python applications. To keep the

Unit 1.16.0 release

2020-03-12 Thread Valentin V. Bartenev
mbination with non-negative patterns. *) Bugfix: Java Spring applications failed to run; the bug had appeared in 1.10.0. *) Bugfix: PHP 7.4 was broken if it was built with thread safety enabled. *) Bugfix: compatibility issues with some Python applications. To keep the

Re: Fwd: RTSP request response

2020-03-10 Thread Valentin V. Bartenev
leased about 7 years ago) it used HTTP/0.9 protocol to respond in this case. wbr, Valentin V. Bartenev ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

[nginx-announce] unit-1.15.0

2020-02-06 Thread Valentin V. Bartenev
try_files"-like functionality for more sophisticated request routing. Stay tuned! wbr, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-announce

Unit 1.15.0 release

2020-02-06 Thread Valentin V. Bartenev
try_files"-like functionality for more sophisticated request routing. Stay tuned! wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[nginx-announce] unit-1.14.0

2019-12-27 Thread Valentin V. Bartenev
r images and packages - Maxim Romanov - senior developer, who worked on Java, WebSockets, and internal IPC - Tiago Natel de Moura - senior developer, who worked on isolation features Thank you guys, I'm happy to work with you. wbr, Valentin V. Bartenev

Unit 1.14.0 release

2019-12-27 Thread Valentin V. Bartenev
r images and packages - Maxim Romanov - senior developer, who worked on Java, WebSockets, and internal IPC - Tiago Natel de Moura - senior developer, who worked on isolation features Thank you guys, I'm happy to work with you. wbr, Valentin V. Bartenev _

Re: Reply to a thread

2019-11-15 Thread Valentin V. Bartenev
ction, please? > Why is it so hard to reply to a post? > > Thanks. > The digest mode in mailing lists is usually suited only if you want to receive "latest news" and don't want to participate in discussions. Otherwise you should subscribe in normal mode. wbr, Valentin V

[nginx-announce] unit-1.13.0

2019-11-14 Thread Valentin V. Bartenev
://mailman.nginx.org/mailman/listinfo/unit wbr, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-announce

Unit 1.13.0 release

2019-11-14 Thread Valentin V. Bartenev
://mailman.nginx.org/mailman/listinfo/unit wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[nginx-announce] unit-1.12.0

2019-10-03 Thread Valentin V. Bartenev
wbr, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-announce

Unit 1.12.0 release

2019-10-03 Thread Valentin V. Bartenev
wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Unit 1.11.0 release

2019-09-19 Thread Valentin V. Bartenev
ntation for Java Servlet Containers. *) Feature: direct addressing of API configuration options containing slashes "/" using URI encoding (%2F). *) Bugfix: segmentation fault might have occurred in Go applications under high load. *) Bugfix: WebSocket support w

[nginx-announce] unit-1.11.0

2019-09-19 Thread Valentin V. Bartenev
ntation for Java Servlet Containers. *) Feature: direct addressing of API configuration options containing slashes "/" using URI encoding (%2F). *) Bugfix: segmentation fault might have occurred in Go applications under high load. *) Bugfix: WebSocket suppo

[nginx-announce] unit-1.10.0

2019-08-22 Thread Valentin V. Bartenev
support for serving static media assets and proxying in Unit. Stay tuned! wbr, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-announce

Unit 1.10.0 release

2019-08-22 Thread Valentin V. Bartenev
support for serving static media assets and proxying in Unit. Stay tuned! wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [Unit] Миграция с fastcgi и её подводные камни

2019-07-02 Thread Valentin V. Bartenev
On Tuesday 02 July 2019 10:21:53 Vadim A. Misbakh-Soloviov wrote: > Здравствуйте! > > Пытаясь смигрировать очередной проект с PHP-FPM на Unit я в очередной раз > столкнулся с проблемой того, что у fastcgi есть такая полезная штука как > split_path_info, где можно задать какая часть URI является

Re: Default log file locations

2019-06-27 Thread Valentin V. Bartenev
nginx (like any other async application) must either log to a regular file or an UDP socket. Anything else is a bad idea from performance and reliability points of view. wbr, Valentin V. Bartenev ___ nginx-devel mailing list nginx-devel

Re: Default log file locations

2019-06-27 Thread Valentin V. Bartenev
le. > > Is there any reason why the default behavior is not that way yet? [..] Afaik, there's no way in Linux systems to write to terminal in non-blocking manner. As the result, writing log can block the whole nginx worker process and cause DoS. IMHO, it's not a good idea to make yo

[nginx-announce] unit-1.9.0

2019-05-30 Thread Valentin V. Bartenev
, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-announce

Unit 1.9.0 release

2019-05-30 Thread Valentin V. Bartenev
, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Unit 1.8.0 release

2019-03-01 Thread Valentin V. Bartenev
nd help us to create the best software ever. wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

[nginx-announce] unit-1.7.1

2019-02-07 Thread Valentin V. Bartenev
; the bug had appeared in 1.7. Release of Unit 1.8 with support for internal request routing and an experimental Java module is planned for end of February. wbr, Valentin V. Bartenev ___ nginx-announce mailing list nginx-announce@nginx.org http

Unit security advisory (CVE-2019-7401)

2019-02-07 Thread Valentin V. Bartenev
affects Unit 0.3 - 1.7. The issue is fixed in Unit 1.7.1. wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Unit 1.7.1 release

2019-02-07 Thread Valentin V. Bartenev
; the bug had appeared in 1.7. Release of Unit 1.8 with support for internal request routing and an experimental Java module is planned for end of February. wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman

Unit 1.7 release

2018-12-20 Thread Valentin V. Bartenev
com/mar0x/unit , so everybody willing to run their Java applications on Unit can participate. Many other good things and announcements about Unit will surely happen in 2019. Thank you for staying with us, and all the best. wbr, Valentin V. Bartenev ___ ngin

[nginx-announce] unit-1.7

2018-12-20 Thread Valentin V. Bartenev
com/mar0x/unit , so everybody willing to run their Java applications on Unit can participate. Many other good things and announcements about Unit will surely happen in 2019. Thank you for staying with us, and all the best. wbr, Valentin V. Bartenev ___ ng

Re: How to build NodeJS support without an Internet connection?

2018-12-12 Thread Valentin V. Bartenev
On Wednesday 12 December 2018 19:11:59 Ralph Seichter wrote: > * Valentin V. Bartenev: > > > http://hg.nginx.org/unit/rev/fd323ad9e24f > > That looks promising, Valentin. I'll try a build as soon as I'm able > to. Would you perhaps consider releasing this as versio

Re: How to build NodeJS support without an Internet connection?

2018-12-12 Thread Valentin V. Bartenev
On Sunday 09 December 2018 21:14:14 Valentin V. Bartenev wrote: > On Sunday, 9 December 2018 16:41:56 MSK Ralph Seichter wrote: > > Hello developer team. > > > > I am the maintainer of the NGINX Unit ebuild for Gentoo Linux, and > > currently I am struggling with colli

Re: How to build NodeJS support without an Internet connection?

2018-12-09 Thread Valentin V. Bartenev
an just remove it. See also this overlay for some ideas: https://github.com/msva/mva-overlay/tree/master/www-servers/nginx-unit wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: njs and subrequests

2018-11-22 Thread Valentin V. Bartenev
at the existing njs modules for nginx: http://hg.nginx.org/njs/file/tip/nginx wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: njs and subrequests

2018-11-17 Thread Valentin V. Bartenev
urces. The js module just provides you an API for this mechanism to make ssi-like subrequests. You're looking for a different thing, in fact you need an http client in the js module to request external resources. That's not something provided right now, but will be nice to have in the future. w

Unit 1.6 release

2018-11-15 Thread Valentin V. Bartenev
alerts might have appeared in log. *) Bugfix: module discovery didn't work on 64-bit big-endian systems like IBM/S390x. wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: fix bug of fmt overflow

2018-11-10 Thread Valentin V. Bartenev
last) { > > /* > * "buf < last" means that we could copy at least one character: > Could you clarify what bug you are trying to fix? There should be no overflows unless you specified an incorrect format string. wbr, Valentin V. Bartenev ___

Re: Variable scope in javascript module

2018-10-30 Thread Valentin V. Bartenev
r.return(403); return; } r.subrequest("/" + svcs[n++], '', done); } callNextService(); } wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Variable scope in javascript module

2018-10-30 Thread Valentin V. Bartenev
re run in parallel: http://nginx.org/en/docs/njs/examples.html#fast_response If you want to schedule the second subrequest only after the first one is finished, then simply put your second subrequest call inside the done callback of the first one. wbr, Va

Re: Variable scope in javascript module

2018-10-30 Thread Valentin V. Bartenev
ot; of JS: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode It's said in the beginning of documentation: http://nginx.org/en/docs/njs/ wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Релиз Unit 1.5

2018-10-25 Thread Valentin V. Bartenev
Здравствуйте. Рад сообщить о выпуске новой версии NGINX Unit. Основным новшеством выпуска является предварительная поддержка Node.js. К сожалению, пока ещё не поддерживаются WebSockets и есть проблема с работой "promises". Тем не менее, некоторые наши пользователи уже начали тестирование ещё

Unit 1.5 release

2018-10-25 Thread Valentin V. Bartenev
;last message send failed: Resource temporarily unavailable" alerts in log; the bug had appeared in 1.4. *) Bugfix: Go applications didn't work when Unit was built with musl C library. wbr, Valentin V. Bartenev ___ nginx mailing list

Unit 1.4 release

2018-09-21 Thread Valentin V. Bartenev
e documentation for Unit. You are welcome to join this effort with your ideas, suggestions, and edits: just send a pull request or open an issue in our documentation repository on GitHub: - https://github.com/nginx/unit-docs/ Stay tuned! wbr, Valentin V. Bartenev ___

Re: When to delete event timers

2018-08-14 Thread Valentin V. Bartenev
On Tuesday 14 August 2018 18:15:26 Antonio Nappa wrote: > Hello, > > I have a module which registers several events and I am using Nginx 1.12.1, > it looks like when I do a reload that the worker(s) hang and with the help > of strace I see that the events hanging are my events. I have added a >

Re: [nginx]empty gif

2018-07-19 Thread Valentin V. Bartenev
gt; [..] The empty_gif module is built _statically_ by default. You don't need to specify the "load_module" directive in order to use the module. wbr, Valentin V. Bartenev ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

Unit 1.3 release

2018-07-13 Thread Valentin V. Bartenev
et to their default values. So, there's no need to set them explicitly if you are happy with the values above. Binary Linux packages and Docker images are available here: - Packages: https://unit.nginx.org/installation/#precompiled-packages - Docker: https://

Re: proxy_cache_background_update leads to 200 ms delay

2018-07-09 Thread Valentin V. Bartenev
rent implementation the client connection is kept "busy" during background update and the last chunk may rest in the socket until kernel will send it. wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: RSS

2018-07-09 Thread Valentin V. Bartenev
ty modules? > It's pretty easy to write one using only njs. > it is closed source code or will be open source code? > > bot mitigation mechanism via javascript good for bots, > but it also disables site indexing by search engines.(?) > > it will be good to whitelist s

Re: proxy_cache_background_update leads to 200 ms delay

2018-07-07 Thread Valentin V. Bartenev
every minute, showed an increase in > response time following this change. > > After some investigating I pinned it down to a ~200 ms delay coming from > using proxy_cache_background_update. > [..] I assume you have tcp_nopush directive enabled, then please try switching it off.

Re: status/usage of FRiCKLE/ngx_cache_purge. still reliable? alternatives?

2018-06-07 Thread Valentin V. Bartenev
fastcgi_cache, based ... > Like almost all official modules, it's independent from the protocol used. http://nginx.org/r/proxy_cache_purge http://nginx.org/r/fastcgi_cache_purge http://nginx.org/r/uwsgi_cache_purge http://nginx.org/r/scgi_cache_purge w

Unit 1.2 release

2018-06-07 Thread Valentin V. Bartenev
: "django.db.backends.postgresql_psycopg2", "DB_NAME": "mydb", "DB_HOST": "127.0.0.1" } } } Please note that "environment" can be configured for any type of application. Binary Linux packages and Docker images are available here: - Packages: https://unit.nginx.org/installation/#precompiled-packages - Docker:https://hub.docker.com/r/nginx/unit/tags/ wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Flask app with virtual Python environment in Unit 1.1 ?

2018-04-29 Thread Valentin V. Bartenev
ess (when unitd is executed) or in the application code. Also, you can pass custom data from nginx using headers. Setting environment variables through API is planned for the next release in June. wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.o

Re: Flask app with virtual Python environment in Unit 1.1 ?

2018-04-29 Thread Valentin V. Bartenev
ot;path": "/var/www/myapp", "home": "/path/to/your/venv/directory" } Please also note that your application callable need to be named "application" (not "app"). That can be easily achievable by: application = app in your wsgi.py wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Unit 1.1 release

2018-04-26 Thread Valentin V. Bartenev
any ideas for improvements, please feel free to share here: - Mailing list: http://mailman.nginx.org/mailman/listinfo/unit - GitHub: https://github.com/nginx/unit/issues wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman

Unit 1.0 release

2018-04-12 Thread Valentin V. Bartenev
f you wish to know more about the project and our plans, please read the announcement blog post: - https://www.nginx.com/blog/nginx-unit-1-0-released/ wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Unit 0.7 beta release

2018-03-23 Thread Valentin V. Bartenev
are available here: - Packages: https://unit.nginx.org/installation/#precompiled-packages - Docker:https://hub.docker.com/r/nginx/unit/tags/ Packages and images for the new Ruby module will be built next week. wbr, Valentin V. Bartenev ___ nginx

Re: [PATCH] HTTP/2: make http2 server support http1

2018-03-20 Thread Valentin V. Bartenev
unctionality. wbr, Valentin V. Bartenev ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread Valentin V. Bartenev
"processes": 10, > "module": "wsgi", > "user": "root", > "group": "root", > "path": "/var/www/app" > } > } > } Since your Python application() callable is inside the /var/www/app/index.py file, then your module should be called "index", not "wsgi". See the Python documentation about how it works: https://docs.python.org/3/tutorial/modules.html#the-module-search-path wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread Valentin V. Bartenev
On Tuesday 13 March 2018 12:43:10 avpdnepr wrote: > root@instance-1:~# ls -l /var/www/app > total 0 > root@instance-1:~# > So, you have no Python application in /var/www/app. What are you trying to run then and where it is? wbr, Valentin

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread Valentin V. Bartenev
;www-php", > "root": "/var/www", > "index": "index.php" > }, > "cart": { > "type": "python", > "processes": 10, > &

Re: I can not configure the python module through the official Nginx Unit documentation?

2018-03-13 Thread Valentin V. Bartenev
code 1 > 2018/03/13 12:10:37 [warn] 1632#1632 failed to start application > "example_python" > This means that Python interpreter is unable to load your application. You should check that the path is correct and Unit application process

Re: [PATCH] HTTP/2: make http2 server support http1

2018-03-12 Thread Valentin V. Bartenev
I will look when time permits. But at the first glance the patch still look too complicated than it should be. wbr, Valentin V. Bartenev On Tuesday 13 March 2018 00:44:28 吕海涛 wrote: > Is there any one who would like to review this patch? > > 发自我的 iPhone > > > 在 2018

Re: thread_pool in Windows

2018-03-06 Thread Valentin V. Bartenev
threads number to one in Windows? > [..] nginx currently cannot use more than one thread in Windows for all operations. Support for thread pool means adding support for more threads. Moreover, thread pools in nginx are used only for reading and writing files. They are never used for connect

Re: [PATCH] HTTP/2: make http2 server support http1

2018-03-05 Thread Valentin V. Bartenev
_preface. > [..] See above. It's a bad idea to decline request with a "client sent invalid h2 preface" message in error log just because client has sent more HTTP/2 frames right after the preface. Overall, the patch looks like a hack and introduces too much complexity for this

Re: [PATCH] HTTP/2: make http2 server support http1

2018-03-02 Thread Valentin V. Bartenev
c->state.buffer_used = buf->last - buf->pos; > +h2c->state.handler = ngx_http_v2_state_head; > +} [..] What if the received data is bigger than h2mcf->recv_buffer? wbr, Valentin V. Bartenev ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

Unit 0.6 beta release

2018-02-09 Thread Valentin V. Bartenev
ocker containers. See the links below for details: - Packages: https://unit.nginx.org/installation/#precompiled-packages - Docker:https://hub.docker.com/r/nginx/unit/tags/ wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [IE] localhost works but server_name times out!

2018-02-07 Thread Valentin V. Bartenev
rd points to the right server? wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Два location со статикой

2018-02-06 Thread Valentin V. Bartenev
On Tuesday 06 February 2018 09:08:21 darksmoke wrote: > root правильный проверил сто раз > Я пробовал и со слэшом в конце и без все равно 404 > У вас root в location /v3/ вообще не указан и наследуется скорее всего из блока http {}. -- Валентин Бартенев

Re: [PATCH 2 of 2] Updated __ORDER_LITTLE_ENDIAN__ to match NGX standards and changed to uint32_t data type

2018-02-03 Thread Valentin V. Bartenev
t32_t*)data; > #else > k = data[0]; > k |= data[1] << 8; Your patch will break nginx on platforms that have alignment requirements. wbr, Valentin V. Bartenev ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

Unit 0.4 beta release

2018-01-15 Thread Valentin V. Bartenev
ttps://www.nginx.com/blog/unit-0-3-beta-release-available-now/ Besides that, please welcome Alexander Borisov who's joined our Unit dev team today. His first task is going to be adding Perl/PSGI support. wbr, Valentin V. Bartenev ___ nginx mailing list

Re: how do I run multiple https web sites on a single IP address

2018-01-02 Thread Valentin V. Bartenev
rong or what is the "special" configuration > to use SNI with shared IPv4 address. > [..] Are you sure that a tool you're using to check supports SNI? wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Error response body not sent if upload is incomplete

2017-12-29 Thread Valentin V. Bartenev
about a > similar thing below. [..] What's in the error log? The error log from one of your links suggests, that the problme in uwsgi server, not in nginx: 2015/08/25 15:28:49 [error] 10#0: *103 readv() failed (104: Connection reset by peer) while reading upstream wbr, Valentin V. Bartene

unit-0.3 beta release

2017-12-29 Thread Valentin V. Bartenev
recompiled-packages Also, here is a new blog post about some of our plans for the near future: - https://www.nginx.com/blog/nginx-unit-progress-and-next-steps/ Happy New Year and best wishes from all of the Unit team. Stay tuned. wbr, Valentin V. Bartenev

Re: NGINX and RFC7540 (http2) violation

2017-12-28 Thread Valentin V. Bartenev
TTP/2 specification (and the protocol itself) is a bad example. Some aspects of the protocol are pure overengineering, some of them are ugly hacks, some of them are just complexity without any benefits, and some of them are vectors of DoS attack. I also suggest to read an article written by th

Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao) (Valentin V. Bartenev)

2017-11-07 Thread Valentin V. Bartenev
On Tuesday, 7 November 2017 18:02:44 MSK Valentin V. Bartenev wrote: > On Tuesday, 7 November 2017 14:36:47 MSK yang chen wrote: > > Thank you very much, but there is another question, if delta larger than > > 1ms, it will invole the ngx_event_expire_timers, why not 2ms or others?

Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao) (Valentin V. Bartenev)

2017-11-07 Thread Valentin V. Bartenev
The function triggers all the timers with absolute time less or equal than the current time. This delta check is just an optimization. I suggest you to read the code of the function. It's hard to understand the logic, if you read only the part of it and don't have the whole picture in the min

Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao)

2017-10-31 Thread Valentin V. Bartenev
which can only indicate blocking issue or overload. wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: [Module] ngx_http_gzip issue : unknown directive "gzip"

2017-10-31 Thread Valentin V. Bartenev
own directive "gzip" in > /usr/local/apps/nginx/etc/conf.d/gzip.conf:2* > [..] You should check your full configuration. It's unclear where this "gzip" directive is included. Please note, there's no such directive in mail and stream modules. wbr, Valentin V. Bartene

  1   2   3   4   5   6   7   >