ข้ามไปที่เนื้อหาหลัก

การ verify custom domain ของ google appengine โดยผ่าน cloudflare



I) THNIC->CloudFlare

step1 : สร้าง account cloudflare กด Add site ใส่ site ของเราลงไป เราจะได้ ลิสต์ของ nameserver มา


step2 : เอาไปใส่ใน thnic
ใส่แค่ nameserver ไม่ต้องใส่ IP


step3 : เช็ค status ของ cloudflare ว่า active


II) CloudFlare -> AppEngine
II.I) Appengine Verification Process

step4 :  ไปที่ Google Appengine > Settings > Custom Domains > Add Custom Domain > Verify a new domain


เราเลือก verify โดยใช้ TXT

step5 : เอาอันนั้นไปใส่ใน cloudflare โดยใส่ name เป็น @ ( หมายถึง root ของโดเมน ) พอใส่เสร็จ มันจะขึ้นชื่อโดเมน อัตโนมัติ


step6 : กลับไปกด verify ใน step4 อาจจะยังไม่ได้ในทันที ถ้ายังไม่ได้ ขอให้รอแป๊ป แล้วมากดใหม่

step7 : Validation success

ส่วนของ Cloud Run เซตใน Domain Mapping Page ( ลิงก์อยู่ใน : https://cloud.google.com/run/docs/mapping-custom-domains )

II.II) CloudFlare -> AppEngine

step8 : พอทำอะไรเรียบร้อย google จะแจกทั้ง IP v4 และ IP v6 ไปให้ใส่ใน cloudflare




non-www SSL error, but www works

SSL error: This server could not prove that it is ; its security certificate expired 763 days ago. This may be caused by a misconfiguration or an attacker intercepting your connection. Your computer's clock is currently set to Tuesday, October 14, 2025. Does that look right? If not, you should correct your system's clock and then refresh this page.

Cloudflare -> Google Cloud run

Solution set "proxy" (not DNS only) for all A, AAA that point to domain.com

ความคิดเห็น