La key de IndexNow solo autoriza URLs bajo su directorio, así que debe
vivir en /{key}.txt. Ghost no sirve ficheros arbitrarios en la raíz: el
middleware reescribe la ruta al fichero real en content/files/indexnow/
(PVC de Ghost, colocado con kubectl cp). El envío de URLs lo hace
~/seo-tools/indexnow_watch.py (timer horario en el master).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
# IndexNow (Bing/DDG/Yandex): la key debe servirse en la RAÍZ del host para
|
|
# autorizar todo el sitio (regla de alcance del protocolo). Ghost no sirve
|
|
# ficheros arbitrarios en la raíz, así que replacePath reescribe /{key}.txt
|
|
# al fichero real en content/files/indexnow/ (PVC de Ghost).
|
|
# El vigilante que envía las URLs es ~/seo-tools/indexnow_watch.py en el master.
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: Middleware
|
|
metadata:
|
|
name: indexnow-key-rewrite
|
|
namespace: ghost-en
|
|
spec:
|
|
replacePath:
|
|
path: /content/files/indexnow/71a89fb8cf46217a239d3a6f0fe3f14f.txt
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: ghost-en-indexnow
|
|
namespace: ghost-en
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- kind: Rule
|
|
match: Host(`www.theexclusionzone.com`) && Path(`/71a89fb8cf46217a239d3a6f0fe3f14f.txt`)
|
|
middlewares:
|
|
- name: indexnow-key-rewrite
|
|
namespace: ghost-en
|
|
services:
|
|
- name: ghost-en
|
|
port: 2368
|
|
tls:
|
|
secretName: ghost-en-tls
|