mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Compare commits
2 commits
521beaebf4
...
df96135934
Author | SHA1 | Date | |
---|---|---|---|
|
df96135934 | ||
|
78d7ec194a |
2 changed files with 35 additions and 1 deletions
31
content/notes/reasons-to-use-nginx.md
Normal file
31
content/notes/reasons-to-use-nginx.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
title: "Reasons to use Nginx"
|
||||
date: 2022-09-09T13:52:55-07:00
|
||||
replyURI: "https://news.ycombinator.com/item?id=32770766"
|
||||
replyTitle: "Nginx…is legacy software being run into the ground"
|
||||
replyType: "DiscussionForumPosting"
|
||||
replyAuthor: "nginxlegacy"
|
||||
replyAuthorURI: "https://news.ycombinator.com/user?id=nginxlegacy"
|
||||
---
|
||||
I generally recommend Caddy over Nginx, but Nginx does still have certain advantages:
|
||||
|
||||
- Nginx supports OpenSSL commands that enable features like TLS record padding.
|
||||
|
||||
- Performance: better latency and scalability to more connections. Not everyone uses a CDN for static/cached content
|
||||
|
||||
- Kernel-accelerated TLS offload on Linux and FreeBSD
|
||||
|
||||
- Many existing modules provide unique functionality. The many modules for live video streaming and image processing are good examples.
|
||||
|
||||
- An ecosystem of patches with features like HPACK static dictionaries, dynamic TLS record sizing, etce
|
||||
|
||||
> …has terrible language integration.
|
||||
|
||||
Generally, "language integration" isn't really a use-case for vanilla Nginx; it's a use-case for Nginx Unit, an Nginx language-specific module, or OpenResty. I personally prefer the reverse-proxy route since it lets me use whatever language I want regardless of server support: Go, Rust, Python, C, etc.
|
||||
|
||||
If none of these are that important then I absolutely would not recommend Nginx; Caddy would be the better tool.
|
||||
|
||||
> People aren't writing internet scale software in lua for a reason.
|
||||
|
||||
I'd include Itch.io, much of Taobao, and some of the most popular API gateways (including Kong) in the category of "Internet-scale software written by 'people'".
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
{{- $wbmLinks := (slice "https://si3t.ch/log/2021-04-18-entetes-floc.html" "https://xmpp.org/2021/02/newsletter-02-feburary/" "https://gurlic.com/technology/post/393626430212145157" "https://gurlic.com/technology/post/343249858599059461" "https://www.librepunk.club/@penryn/108411423190214816" "https://benign.town/@josias/108457015755310198" "http://www.tuxmachines.org/node/148146" "https://i.reddit.com/r/web_design/comments/k0dmpj/an_opinionated_list_of_best_practices_for_textual/gdmxy4u/" "https://bbbhltz.space/posts/thoughts-on-tech-feb2021/" "https://jorts.horse/@alice/108477866954580532") -}}
|
||||
{{- $wbmLinks := (slice "https://si3t.ch/log/2021-04-18-entetes-floc.html" "https://xmpp.org/2021/02/newsletter-02-feburary/" "https://gurlic.com/technology/post/393626430212145157" "https://gurlic.com/technology/post/343249858599059461" "https://www.librepunk.club/@penryn/108411423190214816" "https://benign.town/@josias/108457015755310198" "http://www.tuxmachines.org/node/148146" "https://i.reddit.com/r/web_design/comments/k0dmpj/an_opinionated_list_of_best_practices_for_textual/gdmxy4u/" "https://bbbhltz.space/posts/thoughts-on-tech-feb2021/" "https://jorts.horse/@alice/108477866954580532" "https://brid.gy/comment/mastodon/@Seirdy@pleroma.envs.net/AK7FeQ4h2tUCKNwlXc/AK7GtGkE7JOVgm1Cgi") -}}
|
||||
{{- $archivetodayLinks := (slice "https://example.com") -}}
|
||||
<hr />
|
||||
<section aria-labelledby="webmentions">
|
||||
<h2 id="webmentions" tabindex="-1">Web­mentions</h2>
|
||||
|
@ -36,6 +37,8 @@
|
|||
{{- $src := $webmention.source -}}
|
||||
{{- if in $wbmLinks $src -}}
|
||||
{{- $src = printf "https://web.archive.org/web/0/%s" $src -}}
|
||||
{{- else if in $archivetodayLinks $src -}}
|
||||
{{- $src = printf "https://archive.today/oldest/%s" $src -}}
|
||||
{{- end -}}
|
||||
{{ if (eq $webmention.type "like") -}}
|
||||
<div itemprop="potentialAction" itemscope="" itemtype="https://schema.org/LikeAction" class="u-like h-cite">
|
||||
|
|
Loading…
Reference in a new issue