Fix nomadro.live ads.txt always served (ignore zh cookie)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
# TikTok Promo Next.js + FastAPI, plus English WordPress via audience router.
|
||||
# /api stays on the existing backend. HTML is split: zh → :3015, en/bots → :8089.
|
||||
# /ads.txt always served from disk (never via zh Next.js route).
|
||||
|
||||
nomadro.live, www.nomadro.live {
|
||||
encode gzip
|
||||
|
||||
handle /ads.txt {
|
||||
root * /var/www/nomadro-live-wp
|
||||
header Content-Type "text/plain; charset=utf-8"
|
||||
header X-Robots-Tag "noindex"
|
||||
file_server
|
||||
}
|
||||
|
||||
handle /api/* {
|
||||
reverse_proxy 127.0.0.1:8015
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user