Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apisix custom nginx location dynamic configure #600

Closed
ly123-liu opened this issue Jul 19, 2021 · 5 comments
Closed

apisix custom nginx location dynamic configure #600

ly123-liu opened this issue Jul 19, 2021 · 5 comments
Labels
question Further information is requested

Comments

@ly123-liu
Copy link

apisix: 2.6
apisix-dashboard: 2.7
etcd: 3.5

apisix 是否在单个server 块中支持动态新增nginx location配置 或者其他指令呢?
apisix 在启动的配置中可通过snip支持,但是后续可能会存在新增的server name 有其他需求,apisix 能支持类似nginx-ingress ,不同的server可配置snip并且动态配置吗?

@gxthrj
Copy link
Contributor

gxthrj commented Jul 19, 2021

Due to the different implementation mechanisms of APISIX and Nginx, in APISIX ingress, we recommend using CRD (eg ApisixRoute Resource) to define routes (similar to the location in Nginx).

In ApisixRoute resources, all routing rules are declared under spec, including some advanced configuration such as the canary, which is easier to understand, and conducive to verification, and ensures the correctness of the configuration.

In addition, using snippets is not easy to verify, and the more configuration, the more difficult it is to maintain.
So we do not plan to support snippet script in Apisix Ingress.

BTW, Please use English when discuss.

@tokers
Copy link
Contributor

tokers commented Jul 19, 2021

apisix: 2.6
apisix-dashboard: 2.7
etcd: 3.5

apisix 是否在单个server 块中支持动态新增nginx location配置 或者其他指令呢?
apisix 在启动的配置中可通过snip支持,但是后续可能会存在新增的server name 有其他需求,apisix 能支持类似nginx-ingress ,不同的server可配置snip并且动态配置吗?

Are there any special configurations that you have to use and are not easy to implement by APISIX primitives like Route and Plugins? If not so, you can just use the APISIX primitives.

@ly123-liu
Copy link
Author

image

yes, sometimes we need to update or add some static location , if else statement , max body size .. etc, how can i set this ? thanks

@tao12345666333
Copy link
Member

max body size

client_max_body_size can be set dynamically. You can just using client-control plugin to config it.

xref: apache/apisix#4423

@tao12345666333 tao12345666333 added the question Further information is requested label Aug 4, 2021
@tao12345666333
Copy link
Member

@ly123-liu we can support under the new architecture #610

feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants