Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Mirror directive supports variable

April 01, 2020 07:58PM
Hi Roman Arutyunyan,


Yes. If mirror directive supports a variable and its behavior should be different from static mirror.


That mirror directive support variables can dynamically decide whether they need to be turned on and the configuration will be more concise.


If it is described clearly in the document, it should also be easy to understand.



Thanks,
agile6v




------------------ Original ------------------
From: "Roman Arutyunyan";<arut@nginx.com>;
Send time: Tuesday, Mar 31, 2020 2:02 PM
To: "nginx-devel"<nginx-devel@nginx.org>;
Cc: "dev"<dev@apisix.apache.org>;
Subject: Re: [PATCH] Mirror directive supports variable



On Mon, Mar 30, 2020 at 03:36:11PM +0300, Roman Arutyunyan wrote:
> Hello,
>
> On Fri, Mar 13, 2020 at 11:29:51PM +0800, 一江春水,向东流 wrote:
> > # HG changeset patch
> > # User agile6v <liuwei19@xiaomi.com>
> > # Date 1584110606 -28800
> > # Fri Mar 13 22:43:26 2020 +0800
> > # Node ID e4a0277cab79865fde6fefeed9374154449e6948
> > # Parent 4eb606b4a5b521603c23223cf8863f3999df743c
> > mirror directive supports variable.

Also, what is the reason why you need variables in the mirror directive?
You can do the same thing by creating a static mirror and using rewrite to
change uri.

[..]

--
Roman Arutyunyan_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Mirror directive supports variable Attachments

agile6v 474 March 13, 2020 11:32AM

Re: [PATCH] Mirror directive supports variable

Roman Arutyunyan 149 March 30, 2020 08:38AM

Re: [PATCH] Mirror directive supports variable

Roman Arutyunyan 135 March 31, 2020 02:04AM

Re: [PATCH] Mirror directive supports variable

agile6v 205 April 01, 2020 07:58PM

Re: [PATCH] Mirror directive supports variable

Maxim Dounin 165 April 03, 2020 07:24AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 291
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready