All New

user:thomas gists created by user

title:mygist gists with given title

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

Register

Login


All New Register Login

All gists matching topic nginx

Recently created
Least recently created
Recently updated
Least recently updated
anthony's Avatar

anthony / Minimal nginx reverse-proxy

0 likes
0 forks
1 files
Last active 1740393244
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 likes
0 forks
1 files
Last active 1740389947
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;
Newer Older

Powered by Opengist ⋅ Load: 70ms⋅

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