mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-30 15:22:09 +00:00
Compare commits
No commits in common. "df961359344981012fe128f6a70e6564bac288c4" and "521beaebf467ad7c1948a60f0ca271f7e528cb4c" have entirely different histories.
df96135934
...
521beaebf4
2 changed files with 1 additions and 35 deletions
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
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,5 +1,4 @@
|
|||
{{- $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") -}}
|
||||
{{- $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") -}}
|
||||
<hr />
|
||||
<section aria-labelledby="webmentions">
|
||||
<h2 id="webmentions" tabindex="-1">Web­mentions</h2>
|
||||
|
@ -37,8 +36,6 @@
|
|||
{{- $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