You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 11, 2025. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+12-11
Original file line number
Diff line number
Diff line change
@@ -86,20 +86,20 @@ Lua is a lightweight, high-level, multi-paradigm programming language designed p
86
86
87
87
> Just to name a few:
88
88
>
89
-
> * Mashup'ing and processing outputs of various Nginx upstream outputs (proxy, drizzle, postgres, redis, memcached, and etc) in Lua,
90
-
> * doing arbitrarily complex access control and security checks in Lua before requests actually reach the upstream backends,
91
-
> * manipulating response headers in an arbitrary way (by Lua)
92
-
> * fetching backend information from external storage backends (like redis, memcached, mysql, postgresql) and use that information to choose which upstream backend to access on-the-fly,
93
-
> * coding up arbitrarily complex web applications in a content handler using synchronous but still non-blocking access to the database backends and other > storage,
94
-
> * doing very complex URL dispatch in Lua at rewrite phase,
95
-
> * using Lua to implement advanced caching mechanism for Nginx's subrequests and arbitrary locations.
96
-
>
89
+
> - Mashup'ing and processing outputs of various Nginx upstream outputs (proxy, drizzle, postgres, redis, memcached, and etc) in Lua,
90
+
> - doing arbitrarily complex access control and security checks in Lua before requests actually reach the upstream backends,
91
+
> - manipulating response headers in an arbitrary way (by Lua)
92
+
> - fetching backend information from external storage backends (like redis, memcached, mysql, postgresql) and use that information to choose which upstream backend to access on-the-fly,
93
+
> - coding up arbitrarily complex web applications in a content handler using synchronous but still non-blocking access to the database backends and other > storage,
94
+
> - doing very complex URL dispatch in Lua at rewrite phase,
95
+
> - using Lua to implement advanced caching mechanism for Nginx's subrequests and arbitrary locations.
96
+
>
97
97
> The possibilities are unlimited as the module allows bringing together various
98
98
> elements within Nginx as well as exposing the power of the Lua language to the
99
99
> user. The module provides the full flexibility of scripting while offering
100
100
> performance levels comparable with native C language programs both in terms of
101
101
> CPU time as well as memory footprint thanks to LuaJIT 2.x.
102
-
>
102
+
>
103
103
> Other scripting language implementations typically struggle to match this
104
104
> performance level.
105
105
>
@@ -183,17 +183,18 @@ web:
183
183
By default, this function reads template files in `/etc/nginx/templates/*.template` and outputs the result of executing `envsubst` to `/etc/nginx/conf.d`.
184
184
So if you place `templates/default.conf.template` file, which contains variable references like this:
185
185
186
-
```
186
+
```nginx
187
187
listen ${NGINX_PORT};
188
188
```
189
189
190
190
outputs to `/etc/nginx/conf.d/default.conf` like this:
191
191
192
-
```
192
+
```nginx
193
193
listen 80;
194
194
```
195
195
196
196
This behavior can be changed via the following environment variables:
197
+
197
198
- `NGINX_ENVSUBST_TEMPLATE_DIR`
198
199
- A directory which contains template files (default: `/etc/nginx/templates`)
199
200
- When this directory doesn't exist, this function will do nothing about template processing.
0 commit comments