codewiz, to web
@codewiz@mstdn.io avatar

I haven't paid attention to Netcraft's Web Server Survey, which was once a battlefield between Linux and Microsoft (namely Apache httpd vs Microsoft IIS).

Nginx took the lead from Apache in 2019. However, for the past 3 years Nginx's market share has been on a steady decline, matched by the growth of Cloudflare (10%) and "Other" (25%). Is Amazon AWS lumped with it?

https://www.netcraft.com/blog/april-2024-web-server-survey/

#nginx #apache #web #linux

mobileatom, to random
@mobileatom@flipboard.com avatar
kubikpixel, to twitter
@kubikpixel@chaos.social avatar

Please Don’t Share Our Links on Mastodon: Here’s Why!

We need to talk about this problem. Should Mastodon step up?
So, Mastodon is a nice escape from the big tech social media platforms. […]

🦣 https://news.itsfoss.com/mastodon-link-problem/


#x

marcel,
@marcel@waldvogel.family avatar

3️⃣ In wenigen Minuten hatte ich dann notfallmässig mit Caching davor aufgesetzt und damit flutschte alles. (Bis auf Safari-Requests; die fixte ich dann aber etwas später.)

➡️ Wer sich eine Webseite aufsetzt, sollte die testweise mal mit ein paar Requests bombardieren. Und wenn nötig Caching aufsetzen (was auch -Requests cacht). Dann ist sie bereit. Sonst nicht.
2/2
@kubikpixel
Der geslashdottete, äh, ge-HN-te Artikel ist übrigens der hier:
https://netfuture.ch/2022/05/web3-is-just-expensive-p2p/

khalidabuhakmeh, to random
@khalidabuhakmeh@mastodon.social avatar

Is it just me, or is there something nostalgic about how plain the #nginx 404 page is?

sb, to debian
@sb@fed.sbcloud.cc avatar

I hooked my GNU/Linux-loving son up with an old #lenovo #thinkcenter mini-PC that I picked up at a used AV store for about $50. For another $20, I upgraded the ram to 12GB.

He's got it setup it up with #debian as his first home server, with which he's now hosting a few static websites and an internet radio station for his friends and family. He's got loads of resources to spare for when he gets into running larger services.

You don't need to spend $30+ a month on cloud services when an old recycled office PC will more than suffice.

The best part? Helping him troubleshoot his problems with #DNS and #nginx and all that fun stuff. I've already made every mistake possible over the decades, and he gets to benefit from that. That how it should work!

#gnuLinux #selfhosting #disenshittify #eff

jwildeboer, (edited ) to RedHat
@jwildeboer@social.wildeboer.net avatar

How I run Forgejo as rootless container on my 9 machine with and (just a gist, you need quite some knowledge to follow along, I guess) https://codeberg.org/jwildeboer/gists/src/branch/main/2024/20240425ForgejoPodman.md Pull requests welcome :)

linuxiac, to random
@linuxiac@mastodon.social avatar

Nginx 1.26 web server debuts with HTTP/3 experimental support, per-server HTTP/2, advanced stream modules, and more.
https://linuxiac.com/nginx-1-26-released-with-experimental-http3-support/

#nginx #webserver

linuxiac, to node
@linuxiac@mastodon.social avatar

Learn to set up a reverse proxy with Nginx Proxy Manager, enhancing server management and security in just a few easy steps.
https://linuxiac.com/how-to-set-up-reverse-proxy-with-nginx-proxy-manager/

nixCraft, to linux
@nixCraft@mastodon.social avatar
ottaross, to homeassistant
@ottaross@mastodon.social avatar

Some techy stuff that'll hit all the hashtags…

As a bit of a #homeAssistant project, I noticed my old #RaspberryPi is quite near my 3D printer (basement) and it just runs a #Mosquitto #mqtt server. It has more capacity than that, so I attached an old usb camera, loaded #nginx and wrote some #Python to take a pic of the printer and stuff it into both a web page and a home assistant dashboard.

Some innovation though…

piefedadmin, to random
@piefedadmin@join.piefed.social avatar

Fediverse traffic is pretty bursty and sometimes there will be a large backlog of Activities to send to your server, each of which involves a POST. This can hammer your instance and overwhelm the backend’s ability to keep up. Nginx provides a rate-limiting function which can accept POSTs at full speed and proxy them slowly through to your backend at whatever rate you specify.

For example, PieFed has a backend which listens on port 5000. Nginx listens on port 443 for POSTs from outside and sends them through to port 5000:

upstream app_server {   server 127.0.0.1:5000 fail_timeout=0;}
server {   listen 443 ssl;   listen [::]:443 ssl;   server_name piefed.social www.piefed.social;   root /var/www/whatever;   location / {       # Proxy all requests to Gunicorn       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;       proxy_set_header X-Forwarded-Proto $scheme;       proxy_set_header Host $http_host;       proxy_redirect off;       proxy_http_version 1.1;       proxy_set_header Connection "";       proxy_pass http://app_server;       ssi off;   }

To this basic config we need to add rate limiting, using the ‘limit_req_zone’ directive. Google that for further details.

limit_req_zone $binary_remote_addr zone=one:100m rate=10r/s;

This will use up to 100 MB of RAM as a buffer and limit POSTs to 10 per second, per IP address. Adjust as needed. If the sender is using multiple IP addresses the rate limit will not be as effective. Put this directive outside your server {} block.

Then after our first location / {} block, add a second one that is a copy of the first except with one additional line (and change it to apply to location /inbox or whatever the inbox URL is for your instance):

location /inbox {       <strong>limit_req zone=one burst=300;</strong>#       limit_req_dry_run on;       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;       proxy_set_header X-Forwarded-Proto $scheme;       proxy_set_header Host $http_host;       proxy_redirect off;       proxy_http_version 1.1;       proxy_set_header Connection "";       proxy_pass http://app_server;       ssi off;  }

300 is the maximum number of POSTs it will have in the queue. You can use limit_req_dry_run to test the rate limiting without actually doing any limiting – watch the nginx logs for messages while doing a dry run.

It’s been a while since I set this up so please let me know if I mixed anything crucial out or said something misleading.

https://join.piefed.social/2024/04/17/handling-large-bursts-of-post-requests-to-your-activitypub-inbox-using-a-buffer-in-nginx/

#nginx #webPerformance

coco, to sysadmin

Comment je peux faire avec nginx pour avoir un bloc server par défaut pour chaque domaine, avec HTTPS ?

Je sais pas si vous comprenez la question, en gros il me faudrait plusieurs blocs de ce type :

server {
  listen 443 default_server ssl;
  listen [::]:443 default_server ssl;
  server_name _;

  return 444;
}

Le problème si je fais ça, c'est que je dois spécifier un certificat d'un seul de mes domaines, donc les autres domaines afficheront une erreur HTTPS

Cimer !

underlap, (edited ) to rust
@underlap@fosstodon.org avatar

Here's the beginnings of a small project to create a NGINX module to enforce the rules in robots.txt, for AI web crawlers that ignore the rules.

New Post: NGINX robot access, https://underlap.org/nginx-robot-access.

#rustlang #nginx #robots

nf3xn, to random
@nf3xn@mastodon.social avatar

Always had qualms about #nginx given its developers. Pretty stoked that they have finally forked off. nginx is used far too much in my view. Are there better alternatives?

cos, to emacs
@cos@aus.social avatar

A long time ago I made just enough of an #nginx editing mode for #emacs to be personally useful, and made it available at https://github.com/ajc/nginx-mode - I still get occasional PRs, and have just tagged a 1.1.10 release. Thanks to https://github.com/ryuslash for the fixes!

The new release should show up in MELPA and NonGNU-ELPA soon.

stefan, to accessibility
@stefan@stefanbohacek.online avatar

Hm. I wonder if I can get any fediverse admins onboard to disable all images on their instance on the World Sight Day in October, so that only alt text shows up.

https://en.wikipedia.org/wiki/World_Sight_Day

stefan,
@stefan@stefanbohacek.online avatar

Nice to see this idea getting shared, and people responding positively, thank you all!

I'd love to hear from on what the best way to achieve this is, for various platforms.

Even if you don't want to participate, I'd like to write up a blog post for those who are interested.

stefan,
@stefan@stefanbohacek.online avatar

I think I figured out the folder permissions to pull this off?

Not much luck with the nginx config though, would really appreciate some help.

https://gist.github.com/stefanbohacek/ca85adc8a22311094c9f219e3b899583

martijn, to web
@martijn@ieji.de avatar

Started a dynatrace trial at work today, so far very promising. Some things are a bit complex, but it's pretty good and in our case priced better than sentry or new relic. #web #dev #php #apache #nginx #fpm

krinkle, to random
@krinkle@fosstodon.org avatar

Fastly uses the H2O reverse proxy for fast and secure TLS termination over QUIC, HTTP/3, HTTP/2, and 1.1.

The project site compares its benchmarks only to Nginx. I'd love to see a more recent comparison that includes ATS (Apache Traffic Server), HAProxy, and Varnish/Hitch as fellow reverse proxies for TLS termination.

https://www.fastly.com/blog/tls-more-secure-always-fast

via @devs and https://ieji.de/@SolSoCoG/109392993726218659

matt, to Blog
@matt@knight.fyi avatar

Finally launched my new #blog #website https://www.mattknight.io/

There's still a lot to be done, but I'm really happy with it so far.

A few highlights:

  • built with #eleventy
  • deployed in #distroless #Docker image using #nginx (total image size <10MB)
  • pre-compressed (br + gzip) files
  • works w/o JS (menu stays open)
  • mobile first w/ progressive enhancement
  • tiny (<4KiB home, <7KiB for blog post) + very fast!
  • perfect #lighthouse score
  • supports dark mode
  • served from my office server
carlton, to random
@carlton@fosstodon.org avatar

Diffing change notes between freenginx 💃 and nginx 🏢 is a fun new game. I need to work out what blogs to subscribe to/who to follow.

http://freenginx.org/en/CHANGES
https://nginx.org/en/CHANGES

shalien, to Laravel French
@shalien@projetretro.io avatar

Et comme attendu, même si c'est du #laravel / #postgresql / #nginx installé @pixelfed c'est DUR et compliqué .

M'enfin https://pixelfed.projetretro.io

ubuntushell, to linux
@ubuntushell@mastodon.social avatar
louis, to random
@louis@emacs.ch avatar

I have an nginx (1.18/ubuntu) reverse proxy installed on a remote machine, using that to curl several files daily from a remote machine which expects a stable IP.

The nginx process stops accepting connections after ~3 weeks. After restarting nginx everything seems to be fine again. No errors in logs.

I assume something is wrong on the other end, but what can I do except restarting nginx via cron?

Advice appreciated.

#nginx

governa, to debian
@governa@fosstodon.org avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • magazineikmin
  • Youngstown
  • khanakhh
  • ngwrru68w68
  • slotface
  • ethstaker
  • mdbf
  • everett
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • cisconetworking
  • rosin
  • JUstTest
  • Durango
  • GTA5RPClips
  • anitta
  • tester
  • tacticalgear
  • InstantRegret
  • normalnudes
  • osvaldo12
  • cubers
  • provamag3
  • modclub
  • Leos
  • lostlight
  • All magazines