Skip to content

Commit

Permalink
feat: render full response for bots
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi committed Sep 22, 2023
1 parent 531e4e2 commit 86ace9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nginx/templates/loading-fallback.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ server {
proxy_set_header Host $http_host;
proxy_cache_bypass true;

# https://mailman.nginx.org/pipermail/nginx/2007-May/001031.html
if ($is_bot) {
rewrite ^(.*)$ /bot-bypass$1;
}
location /bot-bypass {
rewrite ^/bot-bypass(.*)$ $1 break;
proxy_pass http://real_server;
}

{{ if (has $mapping "channel") }}
location / {
proxy_pass http://real_server;
Expand Down

0 comments on commit 86ace9d

Please sign in to comment.