Re: foreach does not work

2023-02-21 Thread Sergey A. Osokin
Hi there, On Tue, Feb 21, 2023 at 02:25:23AM -0500, Saint Michael wrote: > The question is, how do I use the foreach construct in the nginx > configuration file? There's no foreach directive in the nginx directives list, [1], please take a look. That's probably something openresty related, so i

foreach does not work

2023-02-20 Thread Saint Michael
The question is, how do I use the foreach construct in the nginx configuration file? > I am using openresty > nginx -version > nginx version: openresty/1.21.4.1 > This fails: > > > >> foreach $domain in $server_name { >>> >> ssl_certificate /etc/letsencrypt/live/$domain/fullchain.pem; >>

foreach does not work

2023-02-20 Thread Saint Michael
I am using openresty nginx -version nginx version: openresty/1.21.4.1 > foreach $domain in $server_name { >> > ssl_certificate /etc/letsencrypt/live/$domain/fullchain.pem; > ssl_certificate_key /etc/letsencrypt/live/$domain/privkey.pem; > } >