{"id":3165,"date":"2026-07-29T11:22:25","date_gmt":"2026-07-29T03:22:25","guid":{"rendered":"https:\/\/www.ruianding.com\/blog\/?p=3165"},"modified":"2026-07-29T11:23:09","modified_gmt":"2026-07-29T03:23:09","slug":"migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go","status":"publish","type":"post","link":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/","title":{"rendered":"Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go"},"content":{"rendered":"\n<p><em>How I migrated my domain registrar, enabled Cloudflare CDN, and kept Trojan-Go over WebSocket working flawlessly.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Why I Decided to Move<\/p>\n\n\n\n<p>For years, my domain was registered with Tencent Cloud.<\/p>\n\n\n\n<p>Everything worked fine, but there were several reasons I finally decided to move:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lower renewal cost through Cloudflare Registrar<\/li>\n\n\n\n<li>Better DNS management<\/li>\n\n\n\n<li>Built-in DDoS protection<\/li>\n\n\n\n<li>Global Anycast CDN<\/li>\n\n\n\n<li>Easier SSL management<\/li>\n\n\n\n<li>Better support for future projects (Workers, R2, AI Gateway, etc.)<\/li>\n<\/ul>\n\n\n\n<p>The biggest concern wasn\u2019t the website.<\/p>\n\n\n\n<p>It was Trojan-Go.<\/p>\n\n\n\n<p>My website and Trojan-Go share the same domain, and I wasn\u2019t sure whether enabling Cloudflare Proxy (the famous orange cloud) would break WebSocket traffic.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">My Existing Architecture<\/h2>\n\n\n\n<p>Before migration, my server looked like this:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">                Internet\n                    \u2502\n            HTTPS \/ WSS :443\n                    \u2502\n             Trojan-Go Server\n      \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n      \u2502                           \u2502\n  WebSocket                 HTTPS Website\n  \/chat-bot                 fallback\n      \u2502                           \u2502\n      \u2502                    Apache :1234\n      \u2502                           \u2502\n   Trojan                    Personal Website<\/pre>\n\n\n\n<p>Apache never handled TLS directly.<\/p>\n\n\n\n<p>Trojan-Go terminated TLS on port 443, and every normal HTTPS request fell back to Apache running on port 1234.<\/p>\n\n\n\n<p>This architecture turned out to be extremely important.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1 \u2014 Transfer DNS First<\/h2>\n\n\n\n<p>Instead of transferring the registrar immediately, I first moved DNS hosting to Cloudflare.<\/p>\n\n\n\n<p>Cloudflare automatically imported all existing DNS records.<\/p>\n\n\n\n<p>After changing the authoritative nameservers, Cloudflare became responsible for DNS resolution while Tencent Cloud still remained the registrar.<\/p>\n\n\n\n<p>This approach minimized risk because the website continued working throughout the migration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2 \u2014 Transfer the Registrar<\/h2>\n\n\n\n<p>Once DNS propagation completed, I transferred the registrar to Cloudflare.<\/p>\n\n\n\n<p>The transfer process was straightforward:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Unlock the domain<\/li>\n\n\n\n<li>Obtain the EPP\/Auth Code<\/li>\n\n\n\n<li>Submit the transfer<\/li>\n\n\n\n<li>Wait for the previous registrar to release the domain<\/li>\n<\/ul>\n\n\n\n<p>Cloudflare automatically added one extra year to the domain registration.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3 \u2014 The Biggest Question<\/h2>\n\n\n\n<p>Should I enable the orange cloud?<\/p>\n\n\n\n<p>This was the part I was most worried about.<\/p>\n\n\n\n<p>Many people say:<\/p>\n\n\n\n<p>Don\u2019t proxy Trojan.<\/p>\n\n\n\n<p>Others say:<\/p>\n\n\n\n<p>Cloudflare works perfectly.<\/p>\n\n\n\n<p>The truth depends entirely on how Trojan is deployed.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">My Trojan-Go Configuration<\/h2>\n\n\n\n<p>My configuration is essentially:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n\t\"local_port\": 443,\n\t\"remote_port\": 1234,\n\t\"ssl\": {\n\t\t\"fallback_port\": 1234\n\t},\n\t\"websocket\": {\n\t\t\"enabled\": true,\n\t\t\"path\": \"\/chat-bot\",\n\t\t\"host\": \"www.ruianding.com\"\n\t}\n}<\/pre>\n\n\n\n<p>Important details:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>TLS terminates inside Trojan-Go<\/li>\n\n\n\n<li>Apache only serves plain HTTP<\/li>\n\n\n\n<li>Normal HTTPS requests fall back to Apache<\/li>\n\n\n\n<li>Trojan traffic uses WebSocket<\/li>\n\n\n\n<li>Website and Trojan share the same port<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Why It Actually Works<\/h2>\n\n\n\n<p>Many people assume Cloudflare only works for websites.<\/p>\n\n\n\n<p>That\u2019s not true.<\/p>\n\n\n\n<p>Cloudflare officially supports WebSocket proxying.<\/p>\n\n\n\n<p>When a client connects:<\/p>\n\n\n\n<p>Client<br>\u2502<br>Cloudflare Edge<br>\u2502<br>WebSocket Upgrade<br>\u2502<br>Trojan-Go<\/p>\n\n\n\n<p>Cloudflare simply forwards the upgraded WebSocket connection.<\/p>\n\n\n\n<p>The \/chat-bot endpoint is not cached.<\/p>\n\n\n\n<p>Only normal website resources (CSS, JS, images, fonts, etc.) benefit from CDN caching.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Enabling Cloudflare Proxy<\/p>\n\n\n\n<p>Eventually I switched both records to Proxied.<\/p>\n\n\n\n<p>ruianding.com<br>www.ruianding.com<\/p>\n\n\n\n<p>After about thirty seconds:<\/p>\n\n\n\n<p>nslookup ruianding.com<\/p>\n\n\n\n<p>returned:<\/p>\n\n\n\n<p>104.x.x.x<br>172.x.x.x<\/p>\n\n\n\n<p>which are Cloudflare Anycast addresses.<\/p>\n\n\n\n<p>At that point:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Website worked<\/li>\n\n\n\n<li>Trojan connected successfully<\/li>\n\n\n\n<li>No configuration changes were required<\/li>\n<\/ul>\n\n\n\n<p>Honestly, it was much smoother than I expected.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Current Architecture<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">                Internet\n                     \u2502\n             Cloudflare Edge\n                     \u2502\n             HTTPS \/ WSS :443\n                     \u2502\n                Trojan-Go\n         \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n         \u2502                       \u2502\n    \/chat-bot              fallback\n         \u2502                       \u2502\n     Trojan Client         Apache :1234\n                                \u2502\n                           Personal Website<\/pre>\n\n\n\n<p>Cloudflare now acts as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DNS provider<\/li>\n\n\n\n<li>Global proxy<\/li>\n\n\n\n<li>CDN<\/li>\n\n\n\n<li>TLS endpoint for visitors<\/li>\n<\/ul>\n\n\n\n<p>while Trojan-Go still handles encrypted traffic to the origin.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What About CDN?<\/h2>\n\n\n\n<p>One misconception is that enabling Cloudflare automatically caches everything.<\/p>\n\n\n\n<p>It doesn\u2019t.<\/p>\n\n\n\n<p>My traffic now looks like this:<\/p>\n\n\n\n<p>Website<br>\/index.html<br>\/css\/*<br>\/js\/*<br>\/images\/*<br>\u2502<br>\u25bc<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Cloudflare CDN<\/h4>\n\n\n\n<p>Trojan<br>\/chat-bot<br>\u2502<br>\u25bc<br>Proxy only<br>(No cache)<\/p>\n\n\n\n<p>Static assets are accelerated.<\/p>\n\n\n\n<p>WebSocket traffic is simply proxied.<\/p>\n\n\n\n<p>Both services coexist without interfering with each other.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Useful Cloudflare Settings<\/h2>\n\n\n\n<p>These are the settings I\u2019m currently using:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>HTTP\/2<\/li>\n\n\n\n<li>HTTP\/3<\/li>\n\n\n\n<li>HTTP\/2 to Origin<\/li>\n\n\n\n<li>TLS 1.3<\/li>\n<\/ul>\n\n\n\n<p>I also recommend enabling:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Always Use HTTPS<\/li>\n\n\n\n<li>Full (Strict) SSL (if your origin certificate supports it)<\/li>\n<\/ul>\n\n\n\n<p>I intentionally didn\u2019t enable aggressive cache rules, because my website contains dynamic content and shares the same domain with Trojan.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Lessons Learned<\/h2>\n\n\n\n<p>The biggest lesson wasn\u2019t about Cloudflare.<\/p>\n\n\n\n<p>It was about architecture.<\/p>\n\n\n\n<p>Using:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Trojan-Go<\/li>\n\n\n\n<li>WebSocket<\/li>\n\n\n\n<li>TLS on port 443<\/li>\n\n\n\n<li>HTTP fallback<\/li>\n\n\n\n<li>Apache behind the proxy<\/li>\n<\/ul>\n\n\n\n<p>creates a surprisingly clean design.<\/p>\n\n\n\n<p>Cloudflare doesn\u2019t need to understand Trojan.<\/p>\n\n\n\n<p>It only needs to proxy HTTPS and WebSocket traffic correctly.<\/p>\n\n\n\n<p>Once I realized that, the migration became much less scary.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Final Thoughts<\/h2>\n\n\n\n<p>This migration achieved everything I wanted:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lower renewal cost<\/li>\n\n\n\n<li>Better DNS management<\/li>\n\n\n\n<li>Global CDN<\/li>\n\n\n\n<li>HTTP\/3<\/li>\n\n\n\n<li>TLS 1.3<\/li>\n\n\n\n<li>DDoS protection<\/li>\n\n\n\n<li>Trojan-Go remained fully functional<\/li>\n<\/ul>\n\n\n\n<p>The best part?<\/p>\n\n\n\n<p>I didn\u2019t have to redesign my infrastructure.<\/p>\n\n\n\n<p>Everything continued working exactly as before\u2014just faster and with a much stronger edge network.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>If you\u2019re running Trojan-Go over WebSocket with HTTP fallback, don\u2019t assume Cloudflare Proxy will break your setup.<\/p>\n\n\n\n<p>In my case, it worked out of the box.<\/p>\n\n\n\n<p>The migration ended up being far less about moving a domain and far more about modernizing my entire infrastructure.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image-1024x683.png\" alt=\"\" class=\"wp-image-3166\" srcset=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image-1024x683.png 1024w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image-300x200.png 300w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image-768x512.png 768w, https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image.png 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How I migrated my domain registrar, enabled Cloudflare CDN, and kept Trojan-Go over WebSocket working flawlessly. Why I Decided to Move For years, my domain was registered with Tencent Cloud. Everything worked fine, but there were several reasons I finally decided to move: The biggest concern wasn\u2019t the website. It was Trojan-Go. My website and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[76,12],"tags":[],"class_list":["post-3165","post","type-post","status-publish","format-standard","hentry","category-network","category-troubleshooting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go - \u6781\u7b80IT\uff5cSimpleIT<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go - \u6781\u7b80IT\uff5cSimpleIT\" \/>\n<meta property=\"og:description\" content=\"How I migrated my domain registrar, enabled Cloudflare CDN, and kept Trojan-Go over WebSocket working flawlessly. Why I Decided to Move For years, my domain was registered with Tencent Cloud. Everything worked fine, but there were several reasons I finally decided to move: The biggest concern wasn\u2019t the website. It was Trojan-Go. My website and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6781\u7b80IT\uff5cSimpleIT\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-29T03:22:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-29T03:23:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ruian Ding\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ruian Ding\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/\"},\"author\":{\"name\":\"Ruian Ding\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"headline\":\"Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go\",\"datePublished\":\"2026-07-29T03:22:25+00:00\",\"dateModified\":\"2026-07-29T03:23:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/\"},\"wordCount\":730,\"publisher\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"image\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image-1024x683.png\",\"articleSection\":[\"Network\",\"Troubleshooting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/\",\"url\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/\",\"name\":\"Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go - \u6781\u7b80IT\uff5cSimpleIT\",\"isPartOf\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image-1024x683.png\",\"datePublished\":\"2026-07-29T03:22:25+00:00\",\"dateModified\":\"2026-07-29T03:23:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#primaryimage\",\"url\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image.png\",\"contentUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image.png\",\"width\":1536,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.ruianding.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#website\",\"url\":\"https:\/\/www.ruianding.com\/blog\/\",\"name\":\"Ruian's Tech Troubleshooting Toolbox\",\"description\":\"Debug the World.\",\"publisher\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\"},\"alternateName\":\"\u4e01\u777f\u5b89\u7684\u6280\u672f\u5206\u4eab\u535a\u5ba2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.ruianding.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b\",\"name\":\"Ruian Ding\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png\",\"contentUrl\":\"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png\",\"width\":284,\"height\":284,\"caption\":\"Ruian Ding\"},\"logo\":{\"@id\":\"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"I am currently a Support Specialist at NIO, focusing on cloud-related issues for NIO Power. Previously, at Microsoft Entra ID, I specialized in identity and access management (IAM), including device registration, Windows Hello for Business (WHfB), multi-factor authentication (MFA), and single sign-on (SSO). In addition to my core expertise, I have a strong foundation in Active Directory, Servers, Cloud Computing, Network Administration, and Front-end Web Development. This diverse technical skill set enables me to effectively handle a wide range of challenges in a fast-paced IT environment.\",\"sameAs\":[\"https:\/\/www.ruianding.com\"],\"url\":\"https:\/\/www.ruianding.com\/blog\/author\/ruiand\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go - \u6781\u7b80IT\uff5cSimpleIT","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/","og_locale":"en_US","og_type":"article","og_title":"Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go - \u6781\u7b80IT\uff5cSimpleIT","og_description":"How I migrated my domain registrar, enabled Cloudflare CDN, and kept Trojan-Go over WebSocket working flawlessly. Why I Decided to Move For years, my domain was registered with Tencent Cloud. Everything worked fine, but there were several reasons I finally decided to move: The biggest concern wasn\u2019t the website. It was Trojan-Go. My website and [&hellip;]","og_url":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/","og_site_name":"\u6781\u7b80IT\uff5cSimpleIT","article_published_time":"2026-07-29T03:22:25+00:00","article_modified_time":"2026-07-29T03:23:09+00:00","og_image":[{"width":1536,"height":1024,"url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image.png","type":"image\/png"}],"author":"Ruian Ding","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ruian Ding","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#article","isPartOf":{"@id":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/"},"author":{"name":"Ruian Ding","@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"headline":"Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go","datePublished":"2026-07-29T03:22:25+00:00","dateModified":"2026-07-29T03:23:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/"},"wordCount":730,"publisher":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"image":{"@id":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image-1024x683.png","articleSection":["Network","Troubleshooting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/","url":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/","name":"Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go - \u6781\u7b80IT\uff5cSimpleIT","isPartOf":{"@id":"https:\/\/www.ruianding.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#primaryimage"},"image":{"@id":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image-1024x683.png","datePublished":"2026-07-29T03:22:25+00:00","dateModified":"2026-07-29T03:23:09+00:00","breadcrumb":{"@id":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#primaryimage","url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image.png","contentUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2026\/07\/image.png","width":1536,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/www.ruianding.com\/blog\/migrating-my-personal-domain-to-cloudflare-without-breaking-trojan-go\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.ruianding.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Migrating My Personal Domain to Cloudflare Without Breaking Trojan-Go"}]},{"@type":"WebSite","@id":"https:\/\/www.ruianding.com\/blog\/#website","url":"https:\/\/www.ruianding.com\/blog\/","name":"Ruian's Tech Troubleshooting Toolbox","description":"Debug the World.","publisher":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b"},"alternateName":"\u4e01\u777f\u5b89\u7684\u6280\u672f\u5206\u4eab\u535a\u5ba2","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ruianding.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/440d88575b7dc819a4cefc8c4199db3b","name":"Ruian Ding","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png","contentUrl":"https:\/\/www.ruianding.com\/blog\/wp-content\/uploads\/2023\/05\/logo.png","width":284,"height":284,"caption":"Ruian Ding"},"logo":{"@id":"https:\/\/www.ruianding.com\/blog\/#\/schema\/person\/image\/"},"description":"I am currently a Support Specialist at NIO, focusing on cloud-related issues for NIO Power. Previously, at Microsoft Entra ID, I specialized in identity and access management (IAM), including device registration, Windows Hello for Business (WHfB), multi-factor authentication (MFA), and single sign-on (SSO). In addition to my core expertise, I have a strong foundation in Active Directory, Servers, Cloud Computing, Network Administration, and Front-end Web Development. This diverse technical skill set enables me to effectively handle a wide range of challenges in a fast-paced IT environment.","sameAs":["https:\/\/www.ruianding.com"],"url":"https:\/\/www.ruianding.com\/blog\/author\/ruiand\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/3165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/comments?post=3165"}],"version-history":[{"count":3,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/3165\/revisions"}],"predecessor-version":[{"id":3169,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/posts\/3165\/revisions\/3169"}],"wp:attachment":[{"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/media?parent=3165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/categories?post=3165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ruianding.com\/blog\/wp-json\/wp\/v2\/tags?post=3165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}