全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

註冊

登錄


全部 新建 註冊 登錄

All gists matching topic nginx

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新
anthony's Avatar

anthony / Minimal nginx reverse-proxy

0 喜歡
0 分支
1 檔案
最後活躍 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 喜歡
0 分支
1 檔案
最後活躍 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;
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 35ms⋅

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