Tool.Yun
Strumenti utili per gli sviluppatori
Decodificatore di codici QR
Generatore di codice QR
Generatore di codice QR WiFi
Generatore di codici a barre
Generatore di informazioni di contatto QR
Lettore di codici a barre
Validatore GTIN
tools.epc-qrcode-generator.name
Codificatore/decodificatore di array esadecimali Base64
Codificatore/decodificatore di stringhe Base64
Consumo energetico e spese del computer
Convertitore dBm mW
Convertitore di base intera
Convertitore di caratteri Unicode in entità Java
Convertitore di coordinate geografiche
Convertitore di file Base64
Convertitore di formato delle variabili ambientali
Convertitore di molte unità
Convertitore di numeri romani
Convertitore di proprietà
Convertitore di unità di archiviazione dati
Da CSV a dati
Excel per i dati
Generatore ULID
Normalizzatore di posta elettronica
Testo a Unicode
Testo in binario UTF-8
Torrent a Magnet
Analizzatore SAML
Bcrypt
Calcolatrice CRC
Codificatore/Decodificatore Bech32
Condivisione del segreto di Shamir
Convertitore di certificati SSL
Cripta e decifratura del vault Ansible
Crittografa / decrittografa testo
Crittografia AGE
Crittografia PGP
Crittografia RSA
Crittografia delle stringhe Jasypt
Crittografia file PGP
Firmatario e verificatore RSA/DSA/ECDSA
Generatore HMAC
Generatore JWT
Generatore di CSR
Generatore di certificati X509
Generatore di chiavi PGP
Generatore di coppie di chiavi ECDSA
Generatore di coppie di chiavi Ed25519
Generatore di coppie di chiavi RSA
Hash del testo
Hasher Argon2
Hasher di file
Niceware Bytes in passphrase
Parser JWT
Parser di certificati/chiavi
Paseto/PASERK Local
Paseto/PASERK Pubblico/Privato
Allarme orario
Calcolatore ETA
Calcolatrice Data+Durata
Calcolatrice TTL
Calcolatrice dei giorni
Calcolatrice della durata
Conto alla rovescia
Convertitore data-ora
Convertitore dei numeri delle settimane
Convertitore di fuso orario
Cron/Allarme giorno feriale
Cronometro
Fusione iCal
Generatore ICAL
Parser di file ICAL
Quale giorno?
Calcolatore BMI
Calcolatore del ritmo di corsa
Calcolatrice SLA
Compatibilità della licenza software
Controllo della carta di credito
Convertitore di calendario
Convertitore di valuta
Convertitore maiuscolo RMB
Dizionario online
Linee guida per l'illuminazione IES
Parser e formattatore di numeri di telefono
Ricerca ISO 639
Ricerca Unicode
Ricerca codici paese ISO 3166
Spiega il comando Shell
Validatore Luhn
Validatore di numeri di partita IVA
Validatore e parser IBAN
Validatore e parser ISBN
Convertitore da "docker run" a Docker compose
Convertitore da Docker Compose a Docker Run
Convertitore di formato Docker Compose
Docker Compose nel file .env
Docker Compose per Quadlet
Docker compone per Kubernetes
Esecuzione di Docker su Kubernetes
Esecuzione di Docker su Quadlets
Etichette Docker Pangolin
Generatore RBAC per Kubernetes
Generatore di etichette Dockerfile
Ispezione Docker per esecuzione Docker
Scaricatore di immagini Docker
Traefik Docker Compose Maker
Validatore Docker Compose
Calcolatore di ammortamento
Convertitore di accelerazione
Convertitore di energia alimentare
Convertitore di frequenza
Convertitore di illuminamento
Convertitore di portata volumetrica
Convertitore di potenza
Convertitore di prefissi SI
Convertitore di temperatura
Convertitore di unità angolari
Convertitore di unità di area
Convertitore di unità di energia
Convertitore di unità di forza
Convertitore di unità di lunghezza
Convertitore di unità di massa
Convertitore di unità di pressione
Convertitore di unità di volume
Convertitore di velocità
Prodotti di sicurezza
Analizzatore di e-mail di rimbalzo
Analizzatore di posta elettronica
Analizzatore di report DMARC
Calcolatrice di resistori
Codificatore/decodificatore esadecimale
Console porta seriale
Convertitore GZip/Deflate
Convertitore Middle-Endian
Convertitore ObjectId MongoDB
Convertitore SMART Raw
Convertitore di codifica MIME
Convertitore di numeri in virgola mobile
Decodificatore EMV TLV
Decodificatore URL di condivisione di SharePoint
Decodificatore di Outlook Safelink
Decodificatore di transazioni ETH
Espansore URL brevi
Estrattore ID fiocco di neve
Foglio riassuntivo sul cablaggio RJ45 Cat6
Generatore TCPDump
Generatore URL
Generatore di comandi Nmap
Informazioni sul codice tasto
Lettore di file Parquet
Mascheramento dei dati sensibili
Parser MSG di Outlook
Parser URL
Parser dei cookie
Ricercatore di proprietà LDAP di ActiveDirectory
Rilevatore di tipo di file
Rilevatore/decodificatore di set di caratteri di testo
Tester DNS
Tester HTTPS
Tester di pixel morti
Tester di propagazione DNS
键盘测试器
Convertitore UUID
Generatore UUID
Generatore di NanoID
Generatore di codice OTP
Generatore di codice PIN
Generatore di frase BIP39
Generatore di numeri casuali
Generatore di passphrase
Generatore di password Diceware
Generatore di token
Generatore numeronym
Lanciatore di dadi
Lanciatore di monete
Ruota della fortuna
Selettore di carte
Anteprima SVG
Confronto immagini
Convertitore HEIC
Convertitore ICO/PNG
Convertitore di formati di immagine
Da GIF a MP4
Filigrana
Immagine in SVG (ritratto)
Invertitore di colore dell'immagine
Lettore di qualità EXIF/Metadati/GPS/JPEG dell'immagine
OCRize immagine e PDF
Registratore di telecamera
Ridimensionatore di immagini
Rimuovi EXIF
Rimuovi lo sfondo dell'immagine
Ritaglia immagine
Analizzatore di dimensioni JSON
Array PHP in JSON
CSV in JSON
Codice JSON in PHP
Convertitore JSON to TOML
Convertitore JSON to YAML
Convertitore da JS a JSON
Convertitore da JSON a JS
Convertitore di stringhe JSON
Da Json a Python
Da ObjGen a JSON
Differenza JSON
Editor JSON
Fusione JSON
JSON Flattener/Unflattener
JSON Linter
JSON all'oggetto
JSON in .env
JSON in C#
JSON in MessagePack
JSON in PHP-Array
JSON in SQL DDL
JSON in Schema
JSON in TS
JSON in XML
JSON in dati
JSON in entità Java
JSON per andare
JSON prettify e format
JSON sort master
JSON to CSV
Json Escaper/Unescaper
Minify JSON
Pacchetto messaggi in JSON
Query Json
Tester Jq/JSONPath
tools.json-patch.name
Calcolatore di mance
Calcolatrice binaria
Convertitore di formati matematici
OCR matematico
Valutatore matematico
Visualizzatore di curve trigonometriche/equazioni
Benchmark builder
Calcolatore di percentuale
Calcolatrice del rapporto d'aspetto
Calcolatrice della distanza geografica
Compressore PDF
Concatenatore PDF
Crittografia PDF
Da HTML a PDF
Decifrare e sbloccare PDF
Estrattore di pagine PDF
Estrattore di testo PDF
Pdf Linearizza/FastWeb
Verificatore firme PDF
Generatore di espressioni Cron
ARPA Decoder
Analizzatore di forza della password
Autorizzazione SIP
Calcolatore chmod
Calcolatore dell'intervallo CIDR-IPv4/6
Calcolatore della velocità di trasferimento dati
Calcolatore di affidabilità RAID
Calcolatore di sottoreti IPv4
Calcolatore di sottoreti visuale
Calcolatrice HDD
Calcolatrice RAID
Calcolatrice RAID ZPOOL
Calcolatrice dell'intervallo IPv4/6 per CIDR
Calcolatrice della subnet IPv6
Calcolatrice di esclusione delle subnet IP
Controllo DNSBL
Controllo Whois
Convertitore Punycode
Convertitore di indirizzi IPv4
Convertitore di indirizzi IPv6
Convertitore di indirizzi MAC
Decodificatore X-VR-SpamCause
Elenco di sottoreti IPv4
Espansore di intervallo IPv4
Foglio riassuntivo di ZPool
Formattatore Nginx
Formattatore di comandi della shell
Forza della password Zxcvbn
Generatore Apache LogRotate
Generatore DNS BIMI
Generatore DNS DKIM
Generatore DNS DMARC
Generatore DNS PTR
Generatore DNS SPF
Generatore FStab
Generatore HTAccess
Generatore Htpasswd/htaccess
Generatore Iptables
Generatore Option43
Generatore Rsync
Generatore ULA IPv6
Generatore WPA PSK
Generatore di autenticazione di base
Generatore di comandi Curl
Generatore di comandi UFW
Generatore di comandi di arresto
Generatore di configurazione Wireguard
Generatore di crontab
Generatore di indirizzi MAC
Generatore di porte casuali
HAS Sanitizer
IPv4-6/IPRange/CIDR in IPRange/CIDR/IPMask
Il mio indirizzo IP
Interi in IPv4/IPv6
Linearizzatore di comandi della shell
Numeri di porta
Ping
Posizione geografica IP
Query DNS
Query DNS/RDAP di Cloudflare
Ricerca indirizzo MAC
Scaricatore multi-link
Test Websocket
Tester di porta TCP/UDP
Tester per microfoni
generatore di riga di comando firewalld
tools.restic-command-generator.name
tools.url-redirection-checker.name
Anteprima dello sconto
Conversione da Markdown a DOCX
Conversione da Markdown a HTML
Conversione da Markdown a Testo
Da Epub a Markdown
Da HTML a markdown
Differenza Markdown
Editor di Markdown
Generatore di indice Markdown
Generatore di tabelle Markdown
Incolla come Markdown
Markdown Lorem Ipsum
Markdown Table Prettifier
Markdown per i dati
tools.markdown-format-converter.name
Foglio di riferimento sulla sintassi JSONPath
Foglio di riferimento sulla sintassi XPath
Foglio riassuntivo K8s
Foglio riassuntivo Nano
Foglio riassuntivo VIM
Foglio riassuntivo comune sulle espressioni regolari
Foglio riassuntivo dei comandi dello schermo
Foglio riassuntivo dei selettori CSS
Foglio riassuntivo del comando Tmux
Foglio riassuntivo del comando Zellij
Foglio riassuntivo del comando chmod
Foglio riassuntivo delle espressioni regolari
Foglio riassuntivo di Bash
Foglio riassuntivo di Docker
Foglio riassuntivo di Docker Compose
Foglio riassuntivo di Docker SWARM
Foglio riassuntivo di Dockerfile
Foglio riassuntivo di Jq
Foglio riassuntivo di Markdown
Foglio riassuntivo di Nginx
Foglio riassuntivo di PowerShell
Foglio riassuntivo di Sed
Foglio riassuntivo per i commit semantici Git
Git cheatsheet
CSS/JS Abbellisci e minimizza
Convertitore di citazioni
Convertitore di file HEX
Convertitore di riccioli
Da JSON a TypeScript
Divisore di file
Editor di comandi Cli
Evidenziatore di codice/script
Falsificatore di dati
Generatore GitIgnore
Generatore Mailto
Generatore di attributi Gita
Generatore di creazione di database
Generatore di favicon
Generatore di meta Open Graph
Generatore di parametri SQL
Generatore di script per test di carico K6
Generatore di segreti Django
Generatore di stringhe di connessione al database
Generatore di tabelle di database
Inserimento da Json a SQL
Javascript Prettifier
Javascript Unobfuscator/Unpacker
Json in Protobuf
Offuscatore Javascript
SQL Minifier
SQL prettify e format
Stacktrace più carino
String Escaper
Test API
Tester Picomart
Tester dell'interfaccia utente Swagger
Tester di fuga ANSI
Timer Pomodoro
TOML Linter
TOML to JSON
TOML to YAML
AI Prompt Splitter
Calcolatrice Levenshtein
Codificatore/decodificatore di token GPT
Condivisione di link social
Confronta i caratteri
Controllore I e L
Convertitore di codice Morse
Convertitore di layout di tastiera
Convertitore di liste
Convertitore di maiuscole/minuscole
Convertitore di rune
Da JSON a TOON
Da TOON a JSON
Diagramma della struttura delle cartelle
Differenza di testo
Elenchi Confronta
Esportatore di sirene
Estrarre testo da HTML
File di pacchetto per l'IA
Formattatore Unicode
Generatore di Lorem ipsum
Generatore di citazioni
Generatore di comandi Sed
Generatore di testo ASCII Art
Generatore/Banner di Zalgo
Immagine in ASCII Art
Lettore RSVP
Obfuscator di stringhe
Parole distinte
Selettore di emoji
Selettore di righe casuali
Sostituzione intelligente del testo e interruzione di riga
Statistiche del testo
Stima del token GPT
Tab per passare agli spazi
Tester di espressioni regolari
Testo all'alfabeto NATO
Testo in nomi Unicode
Traduttore di testo
Trova linee duplicate
Unicode a GSM-7
Abbellitore CSS
Abbellitore HTML
Cattura URL
Codici di stato HTTP
Codifica/decodifica stringhe formattate in formato URL
Controllo del contrasto dei colori
Convertitore CSS XPath
Convertitore di colore
Convertitore di pixel REM
Convertitore di unità CSS
Creatore di frammenti di ricerca di testo URL
Editor HTML WYSIWYG
Escape delle entità HTML
Generatore di URL UTM
Generatore di gradienti CSS
Generatore di segnaposto SVG
HTML in XHTML
HTML in dati
Immagine in CSS
Informazioni sul dispositivo
Minificatore HTML
Parser user-agent
Pulitore HTML
Pulitore URL
Ruota dei colori
Slugify string
Tipi MIME
Da ObjGen a HTML
Formattatore XML
Linter XML
Tester XPath
Tester XSLT
XML in JSON
Convertitore YAML to JSON
Fusione YAML
YAML Flattener/Unflattener
YAML prettify e format
YAML to TOML

Foglio riassuntivo di Nginx

Configurazione di Nginx e comandi utili

nginx is a web server, reverse proxy and load balancer. Configuration is a tree of contexts — main → events / http → server → location — and a directive is only valid in the contexts that define it.

🛠 Service & CLI

# check the configuration before you break production
sudo nginx -t

# print the entire resolved configuration, includes and all
sudo nginx -T

# reload without dropping connections
sudo nginx -s reload
sudo systemctl reload nginx

# start, stop, restart, status
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx
sudo systemctl status nginx

# version, and the modules it was built with
nginx -V

# enable a site (Debian/Ubuntu layout)
sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/

# watch the requests come in
sudo tail -f /var/log/nginx/access.log
sudo tail -f /var/log/nginx/error.log

💡 nginx -t then nginx -s reload — never restart on a live server if you can avoid it. A reload keeps existing connections alive; a restart drops them.

📁 Where Things Live

PathWhat it holds
/etc/nginx/nginx.confThe main file — worker settings and the http block
/etc/nginx/conf.d/*.confIncluded by default on RHEL-style installs
/etc/nginx/sites-available/Site configs on Debian/Ubuntu
/etc/nginx/sites-enabled/Symlinks to the sites that are actually live
/var/log/nginx/access.logEvery request
/var/log/nginx/error.logErrors, and anything the workers complain about
/var/www/htmlThe conventional document root

🧱 Config Skeleton

user www-data;
worker_processes auto;

events {
  worker_connections 1024;
}

http {
  include       /etc/nginx/mime.types;
  default_type  application/octet-stream;
  sendfile      on;
  keepalive_timeout 65;

  server {
    listen 80;
    server_name example.com;

    location / {
      root /var/www/html;
      index index.html;
    }
  }
}

🎧 listen & server_name

server {
  # plain HTTP
  listen 80;

  # HTTPS, with HTTP/2
  listen 443 ssl;
  http2 on;

  # IPv6 as well, or IPv6 only
  listen [::]:80;
  listen [::]:80 ipv6only=on;

  # the fallback server for requests that match no other server_name
  listen 80 default_server;

  # one name, several names, wildcards, or a regex
  server_name example.com;
  server_name example.com www.example.com;
  server_name *.example.com;
  server_name ~^(?<sub>.+)\.example\.com$;

  # requests that arrive with no Host header
  server_name "";
}

📄 Serving Files

server {
  listen 80;
  server_name example.com;
  root /var/www/example.com;
  index index.html index.htm;

  # try the file, then the directory, then fall back — the SPA pattern
  location / {
    try_files $uri $uri/ /index.html;
  }

  # cache fingerprinted assets hard
  location ~* \.(js|css|png|jpe?g|gif|svg|woff2?)$ {
    expires 1y;
    add_header Cache-Control "public, immutable";
    access_log off;
  }

  # a directory listing, when you actually want one
  location /downloads/ {
    autoindex on;
  }

  # a single file
  location = /robots.txt {
    root /var/www/example.com;
    log_not_found off;
  }
}

⚠️ root vs alias: root appends the whole URI to the path, alias replaces the matched prefix. With location /static/ { root /var/www; } a request for /static/a.png reads /var/www/static/a.png; with alias /var/www/assets/; it reads /var/www/assets/a.png. Always end an alias path with /.

📍 Location Matching

nginx does not pick locations top to bottom — it picks by modifier, in this order:

ModifierExampleMeaningPriority
=location = /healthExact match1 — wins immediately
^~location ^~ /static/Prefix match that stops regex matching2
~location ~ \.php$Case-sensitive regex, first match in file order3
~*location ~* \.(jpe?g)$Case-insensitive regex3
(none)location /images/Prefix match — the longest one wins if no regex did4
location = /health { return 200 "ok\n"; }   # checked first, cheapest
location ^~ /assets/ { root /var/www; }     # never falls through to the regex below
location ~* \.(png|jpg)$ { expires 30d; }
location / { try_files $uri $uri/ =404; }   # the catch-all

🔀 Redirects & Rewrites

# permanent redirect to the canonical host
server {
  listen 80;
  server_name www.example.com;
  return 301 https://example.com$request_uri;
}

# force HTTPS
server {
  listen 80;
  server_name example.com;
  return 301 https://$host$request_uri;
}

# temporary redirect of a single path
location /old-page {
  return 302 /new-page;
}

# rewrite with a captured segment
location /blog/ {
  rewrite ^/blog/(.*)$ /articles/$1 permanent;
}

# serve a maintenance page for everyone but your own IP
location / {
  if ($remote_addr != 203.0.113.7) {
    return 503;
  }
}

💡 Prefer return over rewrite — it is faster and clearer. Reach for rewrite only when you need to transform the path.

🔁 Reverse Proxy

server {
  listen 80;
  server_name app.example.com;

  location / {
    proxy_pass http://127.0.0.1:3000;

    # pass the client's details through to the app
    proxy_set_header Host              $host;
    proxy_set_header X-Real-IP         $remote_addr;
    proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    # timeouts: raise these for slow backends
    proxy_connect_timeout 60s;
    proxy_send_timeout    60s;
    proxy_read_timeout    60s;

    # buffering off for streaming responses (SSE, logs)
    proxy_buffering on;
  }

  # WebSockets need the upgrade headers
  location /ws/ {
    proxy_pass http://127.0.0.1:3000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade    $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_read_timeout 3600s;
  }
}

⚠️ The trailing slash on proxy_pass changes everything. proxy_pass http://backend; forwards /api/users as /api/users; proxy_pass http://backend/; strips the matched location prefix first.

⚖️ Load Balancing

upstream backend {
  # least_conn;              # send to the server with the fewest connections
  # ip_hash;                 # sticky sessions by client IP
  # hash $request_uri;       # sticky by URI

  server 10.0.0.1:3000 weight=3;
  server 10.0.0.2:3000;
  server 10.0.0.3:3000 max_fails=3 fail_timeout=30s;
  server 10.0.0.4:3000 backup;

  keepalive 32;              # reuse upstream connections
}

server {
  listen 80;
  location / {
    proxy_pass http://backend;
    proxy_http_version 1.1;
    proxy_set_header Connection "";   # required for keepalive to work
  }
}
MethodBehaviour
(default)Round robin, honouring weight
least_connFewest active connections wins
ip_hashSame client IP always reaches the same server
hash <key>Distribute by any variable, e.g. $request_uri
random two least_connPick two at random, then the less busy one

🔐 HTTPS

server {
  listen 443 ssl;
  http2 on;
  server_name example.com;

  ssl_certificate     /etc/letsencrypt/live/example.com/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;

  ssl_protocols TLSv1.2 TLSv1.3;
  ssl_prefer_server_ciphers off;
  ssl_session_cache shared:SSL:10m;
  ssl_session_timeout 1d;
  ssl_stapling on;
  ssl_stapling_verify on;

  # tell browsers to stay on HTTPS
  add_header Strict-Transport-Security "max-age=63072000" always;
}
# get and renew certificates automatically
sudo certbot --nginx -d example.com -d www.example.com
sudo certbot renew --dry-run

🚦 Limits & Access Control

http {
  # 10 MB of state ≈ 160k addresses; 10 requests/second per IP
  limit_req_zone $binary_remote_addr zone=req_limit:10m rate=10r/s;
  limit_conn_zone $binary_remote_addr zone=conn_limit:10m;

  server {
    # allow short bursts, queue the rest without delaying legitimate users
    location /api/ {
      limit_req zone=req_limit burst=20 nodelay;
      limit_conn conn_limit 10;
    }

    # the size of the largest upload you accept
    client_max_body_size 25m;

    # HTTP basic auth (htpasswd -c /etc/nginx/.htpasswd user)
    location /admin/ {
      auth_basic "Restricted";
      auth_basic_user_file /etc/nginx/.htpasswd;
    }

    # allow a subnet, deny the rest
    location /internal/ {
      allow 10.0.0.0/8;
      deny  all;
    }

    # do not serve dotfiles
    location ~ /\.(?!well-known) {
      deny all;
    }
  }
}

🗜 Performance

http {
  # compress text responses
  gzip on;
  gzip_vary on;
  gzip_min_length 1024;
  gzip_types text/plain text/css application/json application/javascript
             text/xml application/xml image/svg+xml;

  # kernel-level file sending
  sendfile on;
  tcp_nopush on;
  tcp_nodelay on;

  # keep connections around for reuse
  keepalive_timeout 65;
  keepalive_requests 1000;

  # cache open file handles
  open_file_cache max=10000 inactive=30s;
  open_file_cache_valid 60s;

  # a proxy cache for upstream responses
  proxy_cache_path /var/cache/nginx keys_zone=app_cache:10m max_size=1g inactive=60m;

  server {
    location / {
      proxy_cache app_cache;
      proxy_cache_valid 200 10m;
      add_header X-Cache-Status $upstream_cache_status;
    }
  }
}

🧪 Useful Variables

VariableHolds
$hostThe Host header, or the server name that matched
$uriThe normalised path, without the query string
$request_uriThe original path with the query string
$args / $arg_nameThe whole query string / one named parameter
$schemehttp or https
$remote_addrThe client’s IP address
$proxy_add_x_forwarded_forThe existing chain plus $remote_addr
$http_<name>Any request header, e.g. $http_user_agent
$request_methodGET, POST, …
$statusThe response status
$upstream_addrWhich backend actually served the request
$upstream_response_timeHow long the backend took
$request_timeHow long nginx took, start to finish

🩺 Troubleshooting

SymptomUsual cause
502 Bad GatewayThe backend is down, or refused the connection — check the app and proxy_pass
504 Gateway TimeoutThe backend is too slow — raise proxy_read_timeout, then fix the app
413 Request Entity Too LargeRaise client_max_body_size
403 Forbidden on a static fileThe worker user cannot read the path, or a directory lacks x
The wrong site is servedNo server_name matched, so the default_server answered
Changes have no effectThe config was never reloaded, or the file is not symlinked into sites-enabled
# see the config nginx is actually running, includes resolved
sudo nginx -T | less

# which worker user needs read access
ps -o user= -C nginx | sort -u

# turn up the error log while debugging
# error_log /var/log/nginx/error.log debug;

📚 Resources

  • Official documentation
  • Directive index
  • Variable index
  • Mozilla SSL configuration generator
  • Certbot — Let’s Encrypt