-
Updated
Jun 24, 2020 - Shell
openresty
Here are 360 public repositories matching this topic...
使用分流插件后获取post请求参数问题
有同学经常提问针对application/x-www-form-urlencoded类型的post请求,在使用分流插件后获取不到post参数,大部分都是因为配置不当或者对Nginx相关知识点理解不清晰导致的。
下面介绍一个相关issue的正确配置:
- nginx.conf里配置一个upstream:
upstream business_upstream {
server 127.0.0.1:8003;
}- 然后配一个server用来作为business_upstream的服务提供者:
server {
listen 8003;
server_name localhost 127.0.0.1;
access_log ./logURL重定向插件模板提取变量被转义
It would be helpful if there were more examples for allow_domain. I.e. how to make an upstream http request and return true or false based on the response text. Another helpful example would be a shell script exit code.
I am interested in the possibilities of cloning my back end to handle more server load. I have seen multiple references to having those capabilities, but nothing concrete on what the options are, and how to set them up.
Would this be something you could write up a doc sub-page under Website Backends? (https://api-umbrella.readthedocs.io/en/latest/admin/website-backends.html)
An example of th
-
Updated
Jan 9, 2019 - Perl
In particular I am missing in the docs:
- Section Synopsis: explain what the effect is of calling
waf:exec()in all ofaccess_by_lua,header_filter_by_luaandbody_filter_by_lua. why do you need to callwaf:exec()in each of them? - Section Synopsis: it seems there is an error in
log_by_lua. It seems to me it should rather log there and not call exec, as described by https://github.c
-
Updated
May 7, 2020 - Lua
Similar to the official nginx docker container it would be ideal to run the openresty nginx server as a non root user. https://github.com/nginxinc/docker-nginx/blob/25a3fc7343c6916fce1fba32caa1e8de8409d79f/stable/alpine/Dockerfile#L52
This would simplify the handling of nginx.conf quite a bit. Because the nginx user is not present in the openresty container the nginx.conf can't contain a line l
-
Updated
Mar 28, 2020 - PLpgSQL
-
Updated
Mar 20, 2020 - C
-
Updated
Mar 23, 2017 - Lua
-
Updated
Jun 7, 2020 - Dockerfile
-
Updated
Dec 24, 2019 - JavaScript
-
Updated
Jun 8, 2020 - Lua
-
Updated
May 4, 2018 - JavaScript
-
Updated
Jun 29, 2020 - Shell
-
Updated
Jun 5, 2020
In reviewing the documentation and code I cannot see how Unix-domain sockets (https://www.postgresql.org/docs/9.5/libpq-connect.html#AEN43017) are supported.
#19 implies it may be supported.
Is it currently supported? If not, would you consider adding support? How can I help?
What do you think about enabling HSTS as the default?
Improve this page
Add a description, image, and links to the openresty topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the openresty topic, visit your repo's landing page and select "manage topics."
From the docs, I naively assumed that any Lua pattern could be used, or at least the built-in ones and maybe a little more, leading to an attempt to use
%u:[tracks: "/tracks(/:order[%u])(/:asc_desc)(/:page[%d])"]: =>[Looking at the code](https://github.com/leafo/lapis/blob/master/lapis/