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
> :bulb:**Note:** It's recommended that a [Straitjacket](#Straitjacket) with a `chroot` option is declared
416
+
> [!NOTE] It's recommended that a [Straitjacket](#Straitjacket) with a `chroot` option is declared
417
417
> right after a `tls_listener` section, in such a way that the paths to the
418
418
> certificate and key are out of reach from that point on.
419
419
@@ -467,7 +467,7 @@ section can be present in the declaration of a module instance. Handlers do
467
467
not take any configuration options, but may include the `authorization`
468
468
section.
469
469
470
-
> :magic_wand:**Tip:** Executing Lwan with the `--help` command-line
470
+
> [!TIP] Executing Lwan with the `--help` command-line
471
471
> argument will show a list of built-in modules and handlers.
472
472
473
473
The following is some basic documentation for the modules shipped with Lwan.
@@ -490,7 +490,7 @@ best to serve files in the fastest way possible according to some heuristics.
490
490
|`read_ahead`|`int`|`131702`| Maximum amount of bytes to read ahead when caching open files. A value of `0` disables readahead. Readahead is performed by a low priority thread to not block the I/O threads while file extents are being read from the filesystem. |
491
491
|`cache_for`|`time`|`5s`| Time to keep file metadata (size, compressed contents, open file descriptor, etc.) in cache |
492
492
493
-
> :bulb:**Note:** Files smaller than 16KiB will be compressed in RAM for
493
+
> [!NOTE] Files smaller than 16KiB will be compressed in RAM for
494
494
> the duration specified in the `cache_for` setting. Lwan will always try
495
495
> to compress with deflate, and will optionally compress with Brotli and
496
496
> zstd (if Lwan has been built with proper support).
@@ -534,7 +534,7 @@ Scripts can be served from files or embedded in the configuration file, and
534
534
the results of loading them, the standard Lua modules, and (optionally, if
535
535
using LuaJIT) optimizing the code will be cached for a while.
536
536
537
-
> :bulb:**Note:** Lua scripts can't use global variables, as they may be not
537
+
> [!NOTE] Lua scripts can't use global variables, as they may be not
538
538
> only serviced by different threads, but the state will be available only
539
539
> for the amount of time specified in the `cache_period` configuration
540
540
> option. This is because each I/O thread in Lwan will create an instance
@@ -549,7 +549,7 @@ the following signature: `handle_${METHOD}_${ENDPOINT}(req)`, where
549
549
`${METHOD}` can be a HTTP method (i.e. `get`, `post`, `head`, etc.), and
550
550
`${ENDPOINT}` is the desired endpoint to be handled by that function.
551
551
552
-
> :magic_wand:**Tip:** Use the `root` endpoint for a catchall. For example,
552
+
> [!TIP] Use the `root` endpoint for a catchall. For example,
553
553
> the handler function `handle_get_root()` will be called if no other handler
554
554
> could be found for that request. If no catchall is specified, the server
555
555
> will return a `404 Not Found` error.
@@ -599,7 +599,7 @@ The `rewrite` module will match
599
599
to either redirect to another URL, or rewrite the request in a way that Lwan
600
600
will handle the request as if it were made in that way originally.
601
601
602
-
> :information_source:**Info:** Forked from Lua 5.3.1, the regular expresion
602
+
> [!INFORMATION] Forked from Lua 5.3.1, the regular expresion
603
603
> engine may not be as feature-packed as most general-purpose engines, but
604
604
> has been chosen specifically because it is a [deterministic finite
@@ -609,7 +609,7 @@ will handle the request as if it were made in that way originally.
609
609
610
610
The new URL can be specified using a simple text substitution syntax, or use Lua scripts.
611
611
612
-
> :magic_wand:**Tip:** Lua scripts will contain the same metamethods
612
+
> [!TIP] Lua scripts will contain the same metamethods
613
613
> available in the `req` metatable provided by the Lua module, so it can be
614
614
> quite powerful.
615
615
@@ -686,7 +686,7 @@ pattern using the same substitution syntax used for the `rewrite as` or
686
686
foo-%1-bar }` will substitute `%1` with the first match from the pattern
687
687
this condition is related to.
688
688
689
-
> :bulb:**Note:** Conditions that do not require a section have to be written
689
+
> [!NOTE] Conditions that do not require a section have to be written
690
690
> as a key; for instance, `condition has_query_string = yes`.
691
691
692
692
For example, if one wants to send `site-dark-mode.css` if there is a
@@ -729,7 +729,7 @@ pattern (%g+) {
729
729
}
730
730
```
731
731
732
-
> :bulb:**Note:** In general, this is not necessary, as the file serving
732
+
> [!NOTE] In general, this is not necessary, as the file serving
733
733
> module will do this automatically and pick the smallest file available for
734
734
> the requested encoding, but this shows it's possible to have a similar
735
735
> feature by configuration alone.
@@ -775,7 +775,7 @@ Lwan and a [FastCGI](https://en.wikipedia.org/wiki/FastCGI) server
775
775
accessible by Lwan. This is useful, for instance, to serve pages from a
776
776
scripting language such as PHP.
777
777
778
-
> :bulb:**Note:** This is a preliminary version of this module, and
778
+
> [!NOTE] This is a preliminary version of this module, and
779
779
> as such, it's not well optimized, some features are missing, and
780
780
> some values provided to the environment are hardcoded.
781
781
@@ -798,7 +798,7 @@ section with a `basic` parameter, and set one of its options.
798
798
|`realm`|`str`|`Lwan`| Realm for authorization. This is usually shown in the user/password UI in browsers |
799
799
|`password_file`|`str`|`NULL`| Path for a file containing username and passwords (in clear text). The file format is the same as the configuration file format used by Lwan |
800
800
801
-
> :warning:**Warning:** Not only passwords are stored in clear text in a file
801
+
> [!WARNING] Not only passwords are stored in clear text in a file
802
802
> that should be accessible by the server, they'll be kept in memory for a few
0 commit comments