Všechno Nové

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Registrovat

Přihlásit se

Všechno Nové Registrovat Přihlásit se

All gists matching topic nginx

Nedávno Vytvořeno
Nejméně nedávno Vytvořeno
Nedávno Aktualizováno
Nejméně nedávno Aktualizováno
anthony's Avatar

anthony / Minimal nginx reverse-proxy

0 Lajky
0 Forky
1 Soubory
Naposledy aktivní 1 week ago
For example, to pass HTTP-requests to docker containers
docker nginx
1 server {
2 listen 80;
3 listen [::]:80;
4 server_name example.com; # replace with your domain
5
6 access_log /var/log/nginx/access.log;
7 error_log /var/log/nginx/error.log;
8 #client_max_body_size 100M;
9
10 location / {
anthony's Avatar

anthony / Block bots and crawlers in nginx

0 Lajky
0 Forky
1 Soubory
Naposledy aktivní 1 week ago
nginx
1 map $request_uri $reject {
2 "~(yandexbot)" 0;
3 "~(googlebot)" 0;
4 "~(ClaudeBot).*" 1;
5 "~(Amazonbot).*" 1;
6 "~(SemrushBot).*" 1;
7 "~(meta-externalagent).*" 1;
8 "~(DataForSeoBot).*" 1;
9 "~(Screaming Frog SEO Spider).*" 1;
10 "~(GetRight).*" 1;
Novější Starší

Vytvořeno pomocí Opengist ⋅ Load: 72ms⋅

Čeština
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 简体中文 繁體中文