blogs: servir key de IndexNow en la raíz vía replacePath de Traefik
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>
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
# 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
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# 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: zona-exclusion
|
||||||
|
spec:
|
||||||
|
replacePath:
|
||||||
|
path: /content/files/indexnow/e901c150ef9821531cf0d314154c4d1f.txt
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: zona-exclusion-indexnow
|
||||||
|
namespace: zona-exclusion
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- websecure
|
||||||
|
routes:
|
||||||
|
- kind: Rule
|
||||||
|
match: Host(`zonadeexclusion.com`) && Path(`/e901c150ef9821531cf0d314154c4d1f.txt`)
|
||||||
|
middlewares:
|
||||||
|
- name: indexnow-key-rewrite
|
||||||
|
namespace: zona-exclusion
|
||||||
|
services:
|
||||||
|
- name: zona-exclusion
|
||||||
|
port: 80
|
||||||
|
tls:
|
||||||
|
secretName: zona-exclusion-tls
|
||||||
Reference in New Issue
Block a user