mirror of
https://github.com/caddyserver/website.git
synced 2025-04-23 05:26:16 -04:00
Fix a few images/links
This commit is contained in:
parent
ddced518a1
commit
0287674362
5 changed files with 9 additions and 9 deletions
|
@ -25,7 +25,7 @@ This document will help you learn about the HTTP Caddyfile in detail.
|
||||||
|
|
||||||
The Caddyfile's structure can be described visually:
|
The Caddyfile's structure can be described visually:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Key points:
|
Key points:
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ file_server [<matcher>] [browse] {
|
||||||
|
|
||||||
- **browse** <span id="browse"/> enables file listings for requests to directories that do not have an index file.
|
- **browse** <span id="browse"/> enables file listings for requests to directories that do not have an index file.
|
||||||
|
|
||||||
- **<template_file>** <span id="template_file"/> is an optional custom template file to use for directory listings. Defaults to the template that can be extracted using the command `caddy file-server export-template`, which will print the defaut template to stdout. The embedded template can also be found [here in the source code ](https://github.com/caddyserver/caddy/blob/master/modules/caddyhttp/fileserver/browse.html). Browse templates can use actions from [the standard templates module](/docs/modules/http.handlers.templates#docs) as well.
|
- **<template_file>** <span id="template_file"/> is an optional custom template file to use for directory listings. Defaults to the template that can be extracted using the command `caddy file-server export-template`, which will print the defaut template to stdout. The embedded template can also be found [here in the source code ](https://github.com/caddyserver/caddy/blob/master/modules/caddyhttp/fileserver/browse.html). Browse templates can use actions from [the standard templates module](/docs/modules/http.handlers.templates#docs) as well.
|
||||||
|
|
||||||
- **precompressed** <span id="precompressed"/> is the list of encoding formats to search for precompressed sidecar files. Arguments are an ordered list of encoding formats to search for precompressed [sidecar files](https://en.wikipedia.org/wiki/Sidecar_file). Supported formats are `gzip` (`.gz`), `zstd` (`.zst`) and `br` (`.br`).
|
- **precompressed** <span id="precompressed"/> is the list of encoding formats to search for precompressed sidecar files. Arguments are an ordered list of encoding formats to search for precompressed [sidecar files](https://en.wikipedia.org/wiki/Sidecar_file). Supported formats are `gzip` (`.gz`), `zstd` (`.zst`) and `br` (`.br`).
|
||||||
|
|
||||||
|
|
|
@ -400,7 +400,7 @@ Bingo. Nearly half of memory is allocated strictly for read and write buffers fr
|
||||||
|
|
||||||
If we instead run the `svg` or `web` commands, we'll get a visualization of the profile:
|
If we instead run the `svg` or `web` commands, we'll get a visualization of the profile:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
This is a CPU profile but similar graphs are available for other profile types.
|
This is a CPU profile but similar graphs are available for other profile types.
|
||||||
|
|
||||||
|
@ -436,7 +436,7 @@ As you can see, we reduced memory allocations by about half!
|
||||||
|
|
||||||
Diffs can be visualized, too:
|
Diffs can be visualized, too:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
This makes it really obvious how the changes affected the performance of certain parts of the program.
|
This makes it really obvious how the changes affected the performance of certain parts of the program.
|
||||||
|
|
||||||
|
|
|
@ -25,13 +25,13 @@
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:url" content="https://caddyserver.com/">
|
<meta property="og:url" content="https://caddyserver.com/">
|
||||||
<meta property="og:description" content="Caddy is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go">
|
<meta property="og:description" content="Caddy is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go">
|
||||||
<meta property="og:image" content="https://caddyserver.com/resources/images/caddy-open-graph.jpg">
|
<meta property="og:image" content="https://caddyserver.com/old/resources/images/caddy-open-graph.jpg">
|
||||||
|
|
||||||
<!-- Twitter card tags additive with the og: tags -->
|
<!-- Twitter card tags additive with the og: tags -->
|
||||||
<meta name="twitter:card" content="summary">
|
<meta name="twitter:card" content="summary">
|
||||||
<meta name="twitter:domain" value="caddyserver.com">
|
<meta name="twitter:domain" value="caddyserver.com">
|
||||||
<meta name="twitter:description" value="Caddy is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go">
|
<meta name="twitter:description" value="Caddy is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go">
|
||||||
<meta name="twitter:image" content="https://caddyserver.com/resources/images/caddy-open-graph.jpg">
|
<meta name="twitter:image" content="https://caddyserver.com/old/resources/images/caddy-open-graph.jpg">
|
||||||
<meta name="twitter:url" value="https://caddyserver.com/">
|
<meta name="twitter:url" value="https://caddyserver.com/">
|
||||||
|
|
||||||
<!-- Algolia DocSearch -->
|
<!-- Algolia DocSearch -->
|
||||||
|
|
|
@ -3,7 +3,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero {
|
.hero {
|
||||||
background-image: url('/resources/images/bg-teal.jpg');
|
background-image: url('/old/resources/images/bg-teal.jpg');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
padding-bottom: 100px;
|
padding-bottom: 100px;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue