{"id":120196,"date":"2025-10-17T12:09:59","date_gmt":"2025-10-17T05:09:59","guid":{"rendered":"https:\/\/tino.vn\/blog\/?p=120196"},"modified":"2026-10-23T18:54:26","modified_gmt":"2026-10-23T11:54:26","slug":"cai-dat-ngrok-va-tich-hop-n8n-tren-localhost","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t ngrok v\u00e0 t\u00edch h\u1ee3p n8n tr\u00ean localhost A-Z"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>ngrok t\u1ea1o m\u1ed9t \u0111\u1ecba ch\u1ec9 HTTPS c\u00f4ng khai chuy\u1ec3n ti\u1ebfp v\u1ec1 n8n \u0111ang ch\u1ea1y \u1edf localhost:5678, nh\u1edd \u0111\u00f3 d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i g\u1eedi \u0111\u01b0\u1ee3c webhook v\u00e0o m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n.<\/strong> C\u00e1ch l\u00e0m: c\u00e0i ngrok, th\u00eam authtoken, ch\u1ea1y <code>ngrok http 5678<\/code>, \u0111\u1eb7t <code>N8N_WEBHOOK_URL<\/code> b\u1eb1ng \u0111\u1ecba ch\u1ec9 ngrok r\u1ed3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i n8n. Ch\u1ec9 d\u00f9ng \u0111\u1ec3 th\u1eed, kh\u00f4ng d\u00f9ng cho production.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">B\u00e0i n\u00e0y d\u00e0nh cho <a href=\"https:\/\/tino.vn\/blog\/n8n-la-gi\/\">n8n<\/a> ch\u1ea1y tr\u00ean m\u00e1y t\u00ednh c\u00e1 nh\u00e2n; n\u1ebfu ch\u01b0a c\u00e0i, xem <a href=\"https:\/\/tino.vn\/blog\/cach-cai-dat-n8n-tren-may-tinh-pc\/\">c\u00e1ch c\u00e0i \u0111\u1eb7t n8n tr\u00ean m\u00e1y t\u00ednh PC b\u1eb1ng Docker Desktop<\/a>. Khi c\u1ea7n ch\u1ea1y workflow 24\/7, chuy\u1ec3n sang <a href=\"https:\/\/tino.vn\/blog\/cach-cai-dat-n8n-tren-vps\/\">c\u00e0i \u0111\u1eb7t n8n tr\u00ean VPS<\/a>.<\/p>\n\n\n\n<h2 id=\"T\u1ea1i_sao_c\u1ea7n_s\u1eed_d\u1ee5ng_ngrok_v\u1edbi_n8n?\">T\u1ea1i sao c\u1ea7n s\u1eed d\u1ee5ng ngrok v\u1edbi n8n?<\/h2>\n\n\n\n<h3 id=\"V\u1ea5n_\u0111\u1ec1_c\u1ee7a_vi\u1ec7c_ph\u00e1t_tri\u1ec3n_n8n_tr\u00ean_m\u00f4i_tr\u01b0\u1eddng_localhost\">V\u1ea5n \u0111\u1ec1 c\u1ee7a vi\u1ec7c ph\u00e1t tri\u1ec3n n8n tr\u00ean m\u00f4i tr\u01b0\u1eddng localhost<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">n8n ch\u1ea1y tr\u00ean m\u00e1y t\u00ednh c\u00e1 nh\u00e2n c\u00f3 \u0111\u1ecba ch\u1ec9 m\u1eb7c \u0111\u1ecbnh http:\/\/localhost:5678. \u0110\u1ecba ch\u1ec9 <strong>localhost<\/strong> ch\u1ec9 c\u00f3 \u00fd ngh\u0129a b\u00ean trong m\u00e1y c\u1ee7a b\u1ea1n, gi\u1ed1ng s\u1ed1 \u0111i\u1ec7n tho\u1ea1i n\u1ed9i b\u1ed9: ng\u01b0\u1eddi trong v\u0103n ph\u00f2ng g\u1ecdi \u0111\u01b0\u1ee3c, ng\u01b0\u1eddi b\u00ean ngo\u00e0i th\u00ec kh\u00f4ng. V\u1ea5n \u0111\u1ec1 l\u1ed9 r\u00f5 nh\u1ea5t khi b\u1ea1n l\u00e0m vi\u1ec7c v\u1edbi <strong>webhook<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Webhook l\u00e0 c\u01a1 ch\u1ebf d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i ch\u1ee7 \u0111\u1ed9ng g\u1eedi d\u1eef li\u1ec7u \u0111\u1ebfn n8n ngay khi c\u00f3 s\u1ef1 ki\u1ec7n (\u0111\u01a1n h\u00e0ng m\u1edbi, tin nh\u1eafn m\u1edbi, d\u00f2ng m\u1edbi trong trang t\u00ednh\u2026). \u0110\u1ec3 l\u00e0m \u0111\u01b0\u1ee3c, d\u1ecbch v\u1ee5 \u0111\u00f3 c\u1ea7n m\u1ed9t URL c\u00f4ng khai truy c\u1eadp \u0111\u01b0\u1ee3c t\u1eeb Internet; c\u00e1ch node Webhook ho\u1ea1t \u0111\u1ed9ng xem \u1edf <a href=\"https:\/\/tino.vn\/blog\/node-webhook-trong-n8n\/\">node Webhook trong n8n<\/a>. D\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i kh\u00f4ng g\u1eedi \u0111\u01b0\u1ee3c d\u1eef li\u1ec7u \u0111\u1ebfn <em>http:\/\/localhost:5678<\/em>, n\u00ean:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>B\u1ea1n kh\u00f4ng nh\u1eadn \u0111\u01b0\u1ee3c d\u1eef li\u1ec7u webhook th\u1eadt \u0111\u1ec3 ki\u1ec3m tra workflow c\u00f3 ch\u1ea1y \u0111\u00fang kh\u00f4ng.<\/li>\n\n\n<li>B\u1ea1n ph\u1ea3i \u0111o\u00e1n c\u1ea5u tr\u00fac d\u1eef li\u1ec7u, ho\u1eb7c \u0111\u01b0a workflow l\u00ean m\u00e1y ch\u1ee7 c\u00f4ng khai ch\u1ec9 \u0111\u1ec3 th\u1eed m\u1ed9t thay \u0111\u1ed5i nh\u1ecf.<\/li>\n\n\n<li>Kh\u00f4ng c\u00f3 d\u1eef li\u1ec7u th\u1eadt, vi\u1ec7c t\u00ecm v\u00e0 s\u1eeda l\u1ed7i trong logic workflow kh\u00f3 h\u01a1n nhi\u1ec1u.<\/li>\n<\/ul>\n\n\n\n<h3 id=\"ngrok_l\u00e0_g\u00ec?_Gi\u1ea3i_quy\u1ebft_v\u1ea5n_\u0111\u1ec1_n\u00e0y_nh\u01b0_th\u1ebf_n\u00e0o?\">ngrok l\u00e0 g\u00ec? Gi\u1ea3i quy\u1ebft v\u1ea5n \u0111\u1ec1 n\u00e0y nh\u01b0 th\u1ebf n\u00e0o?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ngrok l\u00e0 c\u00f4ng c\u1ee5 t\u1ea1o \u201c\u0111\u01b0\u1eddng h\u1ea7m\u201d (tunnel): n\u00f3 c\u1ea5p m\u1ed9t URL c\u00f4ng khai v\u00e0 chuy\u1ec3n to\u00e0n b\u1ed9 y\u00eau c\u1ea7u g\u1eedi \u0111\u1ebfn URL \u0111\u00f3 v\u1ec1 m\u1ed9t c\u1ed5ng tr\u00ean m\u00e1y c\u1ee7a b\u1ea1n, \u1edf \u0111\u00e2y l\u00e0 c\u1ed5ng 5678 c\u1ee7a n8n. B\u1ea1n \u0111\u01b0a URL n\u00e0y cho d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i (Shopify, GitHub, Telegram\u2026), v\u00e0 m\u1ecdi d\u1eef li\u1ec7u h\u1ecd g\u1eedi s\u1ebd \u0111i th\u1eb3ng v\u00e0o n8n tr\u00ean m\u00e1y t\u00ednh.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">T\u00e0i kho\u1ea3n ngrok Free \u0111\u01b0\u1ee3c c\u1ea5p m\u1ed9t dev domain c\u1ed1 \u0111\u1ecbnh d\u1ea1ng <code>ten-ngau-nhien.ngrok-free.dev<\/code>, g\u1eafn v\u1edbi t\u00e0i kho\u1ea3n, n\u00ean URL kh\u00f4ng \u0111\u1ed5i m\u1ed7i l\u1ea7n ch\u1ea1y l\u1ea1i (<a href=\"https:\/\/ngrok.com\/pricing\" target=\"_blank\" rel=\"noopener nofollow\">ngrok pricing<\/a>, 23\/10\/2026).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">T\u1eeb n8n 2.0, l\u1ec7nh tunnel c\u00f3 s\u1eb5n <code>n8n start --tunnel<\/code> \u0111\u00e3 b\u1ecb g\u1ee1 (<a href=\"https:\/\/docs.n8n.io\/changelog\/v20-breaking-changes\" target=\"_blank\" rel=\"noopener nofollow\">v2.0 breaking changes<\/a>); \u0111\u1ec3 th\u1eed webhook tr\u00ean m\u00e1y, d\u00f9ng ngrok, localtunnel ho\u1eb7c Cloudflare Tunnel.<\/p>\n\n\n\n<h3 id=\"L\u1ee3i_\u00edch_ch\u00ednh_khi_k\u1ebft_h\u1ee3p_n8n_v\u00e0_ngrok\">L\u1ee3i \u00edch ch\u00ednh khi k\u1ebft h\u1ee3p n8n v\u00e0 ngrok<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Ki\u1ec3m th\u1eed v\u00e0 g\u1ee1 l\u1ed7i theo th\u1eddi gian th\u1ef1c:<\/strong> t\u1ea1o m\u1ed9t s\u1ef1 ki\u1ec7n th\u1eadt (v\u00ed d\u1ee5 \u0111\u01a1n h\u00e0ng th\u1eed tr\u00ean Shopify) v\u00e0 th\u1ea5y ngay d\u1eef li\u1ec7u ch\u1ea3y v\u00e0o workflow tr\u00ean m\u00e1y, nh\u1edd \u0111\u00f3 hi\u1ec3u \u0111\u00fang c\u1ea5u tr\u00fac d\u1eef li\u1ec7u.<\/li>\n\n\n<li><strong>Th\u1eed webhook nhanh h\u01a1n:<\/strong> s\u1eeda, l\u01b0u v\u00e0 th\u1eed workflow ngay tr\u00ean m\u00e1y thay v\u00ec tri\u1ec3n khai l\u00ean m\u00e1y ch\u1ee7 m\u1ed7i l\u1ea7n thay \u0111\u1ed5i.<\/li>\n\n\n<li><strong>Ch\u01b0a c\u1ea7n thu\u00ea m\u00e1y ch\u1ee7:<\/strong> giai \u0111o\u1ea1n ph\u00e1t tri\u1ec3n v\u00e0 th\u1eed nghi\u1ec7m c\u00f3 th\u1ec3 l\u00e0m h\u1ebft tr\u00ean m\u00e1y t\u00ednh; khi ch\u1ea1y th\u1eadt m\u1edbi c\u1ea7n <a href=\"https:\/\/tino.vn\/vps-n8n\">VPS<\/a>.<\/li>\n\n\n<li><strong>D\u1ec5 demo:<\/strong> ch\u1ea1y n8n v\u00e0 ngrok tr\u00ean laptop l\u00e0 c\u00f3 b\u1ea3n demo tr\u1ef1c ti\u1ebfp cho kh\u00e1ch h\u00e0ng, \u0111\u1ed3ng nghi\u1ec7p.<\/li>\n\n\n<li><strong>Giao di\u1ec7n gi\u00e1m s\u00e1t:<\/strong> ngrok c\u00f3 trang http:\/\/127.0.0.1:4040 \u0111\u1ec3 xem v\u00e0 ph\u00e1t l\u1ea1i (replay) c\u00e1c request \u0111\u00e3 \u0111i qua \u0111\u01b0\u1eddng h\u1ea7m.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"H\u01b0\u1edbng_d\u1eabn_c\u00e0i_\u0111\u1eb7t_ngrok_v\u00e0_t\u00edch_h\u1ee3p_n8n_tr\u00ean_localhost\">H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t ngrok v\u00e0 t\u00edch h\u1ee3p n8n tr\u00ean localhost<\/h2>\n\n\n\n<h3 id=\"Chu\u1ea9n_b\u1ecb\">Chu\u1ea9n b\u1ecb<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>n8n ch\u1ea1y tr\u00ean m\u00e1y t\u00ednh:<\/strong> xem <a href=\"https:\/\/tino.vn\/blog\/cach-cai-dat-n8n-tren-may-tinh-pc\/\">h\u01b0\u1edbng d\u1eabn c\u00e0i n8n tr\u00ean m\u00e1y t\u00ednh b\u1eb1ng Docker Desktop<\/a>.<\/li>\n\n\n<li><strong>T\u00e0i kho\u1ea3n ngrok (g\u00f3i Free l\u00e0 \u0111\u1ee7):<\/strong> c\u1ea7n \u0111\u1ec3 l\u1ea5y authtoken. \u0110\u0103ng k\u00fd t\u1ea1i <a href=\"https:\/\/ngrok.com\/\" target=\"_blank\" rel=\"noopener nofollow\">ngrok.com<\/a>.<\/li>\n\n\n<li><strong>C\u1eeda s\u1ed5 d\u00f2ng l\u1ec7nh:<\/strong> PowerShell ho\u1eb7c Command Prompt tr\u00ean Windows; Terminal tr\u00ean macOS, Linux.<\/li>\n<\/ul>\n\n\n\n<h3 id=\"H\u01b0\u1edbng_d\u1eabn_c\u00e0i_\u0111\u1eb7t_ngrok\">H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t ngrok<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 1:<\/strong> \u0110\u0103ng nh\u1eadp dashboard c\u1ee7a ngrok. \u1ede m\u1ee5c <strong>Setup &amp; Installation<\/strong>, ngrok t\u1ef1 nh\u1eadn di\u1ec7n h\u1ec7 \u0111i\u1ec1u h\u00e0nh. Ch\u1ecdn tab <strong>Download<\/strong> r\u1ed3i t\u1ea3i file .zip ph\u00f9 h\u1ee3p (v\u00ed d\u1ee5 Windows 64-bit).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1697\" height=\"897\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-01.webp\" alt=\"Trang Setup v\u00e0 Installation trong dashboard ngrok, tab Download c\u00f3 n\u00fat Download for Windows 64-Bit (authtoken v\u00e0 t\u00ean t\u00e0i kho\u1ea3n \u0111\u00e3 \u0111\u01b0\u1ee3c che)\" class=\"wp-image-131773\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-01.webp 1697w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-01-300x159.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-01-1024x541.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-01-768x406.webp 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-01-1536x812.webp 1536w\" sizes=\"(max-width: 1697px) 100vw, 1697px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 2:<\/strong> Gi\u1ea3i n\u00e9n file .zip, b\u1ea1n nh\u1eadn \u0111\u01b0\u1ee3c m\u1ed9t file duy nh\u1ea5t l\u00e0 <strong>ngrok.exe<\/strong> (Windows) ho\u1eb7c <strong>ngrok<\/strong> (macOS, Linux).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"942\" height=\"514\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/10\/word-image-120173-2.png\" alt=\"File ngrok sau khi gi\u1ea3i n\u00e9n trong th\u01b0 m\u1ee5c tr\u00ean Windows\" class=\"wp-image-120175\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/10\/word-image-120173-2.png 942w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/10\/word-image-120173-2-300x164.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/10\/word-image-120173-2-768x419.png 768w\" sizes=\"(max-width: 942px) 100vw, 942px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u1ec3 g\u1ecdi l\u1ec7nh ngrok t\u1eeb b\u1ea5t k\u1ef3 th\u01b0 m\u1ee5c n\u00e0o, \u0111\u01b0a file v\u00e0o th\u01b0 m\u1ee5c h\u1ec7 th\u1ed1ng:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>macOS, Linux:<\/strong> ch\u1ea1y <code>sudo mv \/path\/to\/ngrok \/usr\/local\/bin\/<\/code>.<\/li>\n\n\n<li><strong>Windows:<\/strong> t\u1ea1o th\u01b0 m\u1ee5c, v\u00ed d\u1ee5 <code>C:\\ngrok<\/code>, ch\u00e9p ngrok.exe v\u00e0o \u0111\u00f3 r\u1ed3i th\u00eam <code>C:\\ngrok<\/code> v\u00e0o bi\u1ebfn m\u00f4i tr\u01b0\u1eddng Path. C\u00e1ch kh\u00e1c: c\u00e0i t\u1eeb Microsoft Store nh\u01b0 ngrok g\u1ee3i \u00fd.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 3:<\/strong> G\u1eafn ngrok v\u1edbi t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n b\u1eb1ng authtoken. Tr\u00ean dashboard, sao ch\u00e9p d\u00f2ng l\u1ec7nh c\u00f3 d\u1ea1ng:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ngrok config add-authtoken &lt;YOUR_AUTH_TOKEN&gt;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1166\" height=\"805\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-02.webp\" alt=\"Dashboard ngrok hi\u1ec3n th\u1ecb l\u1ec7nh ngrok config add-authtoken (token \u0111\u00e3 \u0111\u01b0\u1ee3c thay b\u1eb1ng ch\u1eef AUTHTOKEN) v\u00e0 dev domain c\u1ee7a t\u00e0i kho\u1ea3n\" class=\"wp-image-131774\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-02.webp 1166w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-02-300x207.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-02-1024x707.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-02-768x530.webp 768w\" sizes=\"(max-width: 1166px) 100vw, 1166px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Authtoken l\u00e0 m\u1eadt kh\u1ea9u c\u1ee7a t\u00e0i kho\u1ea3n ngrok: kh\u00f4ng chia s\u1ebb, kh\u00f4ng \u0111\u01b0a v\u00e0o \u1ea3nh ch\u1ee5p m\u00e0n h\u00ecnh. N\u1ebfu l\u1ee1 l\u1ed9, t\u1ea1o l\u1ea1i token trong dashboard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 4:<\/strong> M\u1edf PowerShell ho\u1eb7c Terminal, d\u00e1n d\u00f2ng l\u1ec7nh v\u1eeba sao ch\u00e9p r\u1ed3i nh\u1ea5n <strong>Enter<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1266\" height=\"696\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-03.webp\" alt=\"PowerShell ch\u1ea1y l\u1ec7nh ngrok config add-authtoken (token \u0111\u00e3 \u0111\u01b0\u1ee3c che)\" class=\"wp-image-131775\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-03.webp 1266w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-03-300x165.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-03-1024x563.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-03-768x422.webp 768w\" sizes=\"(max-width: 1266px) 100vw, 1266px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Th\u00f4ng b\u00e1o <code>Authtoken saved to configuration file<\/code> xu\u1ea5t hi\u1ec7n l\u00e0 ngrok \u0111\u00e3 s\u1eb5n s\u00e0ng.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1213\" height=\"722\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-04.webp\" alt=\"PowerShell b\u00e1o Authtoken saved to configuration file ngrok.yml (token \u0111\u00e3 \u0111\u01b0\u1ee3c che)\" class=\"wp-image-131776\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-04.webp 1213w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-04-300x179.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-04-1024x610.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-04-768x457.webp 768w\" sizes=\"(max-width: 1213px) 100vw, 1213px\" \/><\/figure>\n\n\n\n<h3 id=\"C\u00e1ch_t\u00edch_h\u1ee3p_ngrok_v\u1edbi_n8n_\u0111\u1ec3_nh\u1eadn_webhook\">C\u00e1ch t\u00edch h\u1ee3p ngrok v\u1edbi n8n \u0111\u1ec3 nh\u1eadn webhook<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">T\u00edch h\u1ee3p ngrok v\u1edbi n8n g\u1ed3m ba vi\u1ec7c: m\u1edf \u0111\u01b0\u1eddng h\u1ea7m t\u1edbi c\u1ed5ng 5678, khai b\u00e1o \u0111\u1ecba ch\u1ec9 ngrok cho n8n qua <code>N8N_WEBHOOK_URL<\/code>, r\u1ed3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i n8n \u0111\u1ec3 node Webhook hi\u1ec7n \u0111\u00fang URL c\u00f4ng khai.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 1:<\/strong> M\u1edf n8n v\u00e0 \u0111\u1ea3m b\u1ea3o n8n \u0111ang ch\u1ea1y \u1edf c\u1ed5ng 5678.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 2:<\/strong> Trong c\u1eeda s\u1ed5 d\u00f2ng l\u1ec7nh, ch\u1ea1y:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ngrok http 5678<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1165\" height=\"679\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/10\/word-image-120173-6.png\" alt=\"PowerShell ch\u1ea1y l\u1ec7nh ngrok http 5678\" class=\"wp-image-120179\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/10\/word-image-120173-6.png 1165w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/10\/word-image-120173-6-300x175.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/10\/word-image-120173-6-1024x597.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2025\/10\/word-image-120173-6-768x448.png 768w\" sizes=\"(max-width: 1165px) 100vw, 1165px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">L\u1ec7nh n\u00e0y t\u1ea1o \u0111\u01b0\u1eddng h\u1ea7m HTTPS c\u00f4ng khai v\u00e0 chuy\u1ec3n m\u1ecdi truy c\u1eadp \u0111\u1ebfn c\u1ed5ng 5678 tr\u00ean m\u00e1y c\u1ee7a b\u1ea1n.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 3:<\/strong> Trong giao di\u1ec7n ngrok hi\u1ec7n ra, t\u00ecm d\u00f2ng <strong>Forwarding<\/strong> v\u00e0 sao ch\u00e9p URL c\u00f3 d\u1ea1ng:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:\/\/&lt;ten-ngau-nhien&gt;.ngrok-free.dev<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1248\" height=\"725\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-05.webp\" alt=\"Giao di\u1ec7n ngrok trong PowerShell: Session Status online, t\u00e0i kho\u1ea3n g\u00f3i Free (email \u0111\u00e3 thay b\u1eb1ng ten@example.com), Forwarding t\u1eeb \u0111\u1ecba ch\u1ec9 ngrok-free.dev v\u1ec1 http:\/\/localhost:5678\" class=\"wp-image-131777\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-05.webp 1248w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-05-300x174.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-05-1024x595.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-05-768x446.webp 768w\" sizes=\"(max-width: 1248px) 100vw, 1248px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0110\u00e2y l\u00e0 \u0111\u1ecba ch\u1ec9 c\u00f4ng khai m\u00e0 d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i d\u00f9ng \u0111\u1ec3 g\u1ecdi v\u00e0o n8n. Gi\u1eef c\u1eeda s\u1ed5 n\u00e0y m\u1edf; \u0111\u00f3ng l\u1ea1i l\u00e0 \u0111\u01b0\u1eddng h\u1ea7m ng\u1eaft.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 4:<\/strong> Khai b\u00e1o \u0111\u1ecba ch\u1ec9 ngrok cho n8n r\u1ed3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i. n8n kh\u00f4ng t\u1ef1 bi\u1ebft n\u00f3 \u0111ang n\u1eb1m sau ngrok, n\u00ean node Webhook v\u1eabn hi\u1ec7n URL d\u1ea1ng localhost v\u00e0 c\u00e1c trigger t\u1ef1 \u0111\u0103ng k\u00fd webhook (Telegram, GitHub\u2026) hay OAuth callback s\u1ebd g\u1eedi sai \u0111\u1ecba ch\u1ec9. T\u00e0i li\u1ec7u n8n y\u00eau c\u1ea7u \u0111\u1eb7t URL webhook th\u1ee7 c\u00f4ng khi ch\u1ea1y sau proxy (<a href=\"https:\/\/docs.n8n.io\/deploy\/host-n8n\/configure-n8n\/basic-configuration\/configuration-examples\/configure-webhook-urls-with-reverse-proxy\" target=\"_blank\" rel=\"noopener nofollow\">Configure webhook URLs with reverse proxy<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">V\u1edbi n8n ch\u1ea1y b\u1eb1ng Docker, x\u00f3a container c\u0169 (d\u1eef li\u1ec7u n\u1eb1m trong volume n\u00ean kh\u00f4ng m\u1ea5t) r\u1ed3i ch\u1ea1y l\u1ea1i v\u1edbi bi\u1ebfn m\u1edbi:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker stop n8n\ndocker rm n8n\ndocker run -d --name n8n --restart unless-stopped -p 5678:5678 \\\n  -e GENERIC_TIMEZONE=\"Asia\/Ho_Chi_Minh\" -e TZ=\"Asia\/Ho_Chi_Minh\" \\\n  -e N8N_WEBHOOK_URL=\"https:\/\/&lt;ten-ngau-nhien&gt;.ngrok-free.dev\/\" \\\n  -v n8n_data:\/home\/node\/.n8n \\\n  n8nio\/n8n:2.44.6<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Gi\u1eef \u0111\u00fang volume v\u00e0 c\u00e1c bi\u1ebfn <code>-e<\/code> b\u1ea1n \u0111\u00e3 d\u00f9ng khi c\u00e0i. <code>N8N_WEBHOOK_URL<\/code> c\u00f3 t\u1eeb n8n 2.30.0; b\u1ea3n c\u0169 h\u01a1n d\u00f9ng <code>WEBHOOK_URL<\/code> (v\u1eabn ch\u1ea1y nh\u01b0ng b\u1ecb \u0111\u00e1nh d\u1ea5u deprecated t\u1eeb 2.35.0). N\u1ebfu c\u00e0i b\u1eb1ng npm, \u0111\u1eb7t bi\u1ebfn m\u00f4i tr\u01b0\u1eddng tr\u01b0\u1edbc khi ch\u1ea1y <code>n8n start<\/code>. V\u00ec dev domain c\u1ee7a g\u00f3i Free c\u1ed1 \u0111\u1ecbnh, b\u1ea1n ch\u1ec9 c\u1ea7n l\u00e0m b\u01b0\u1edbc n\u00e0y m\u1ed9t l\u1ea7n.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1400\" height=\"750\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-n8n-webhook-url.webp\" alt=\"So s\u00e1nh URL trong node Webhook tr\u01b0\u1edbc v\u00e0 sau khi \u0111\u1eb7t N8N_WEBHOOK_URL: tr\u01b0\u1edbc l\u00e0 localhost:5678 n\u00ean d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i kh\u00f4ng g\u1ecdi \u0111\u01b0\u1ee3c v\u00e0 trigger t\u1ef1 \u0111\u0103ng k\u00fd sai \u0111\u1ecba ch\u1ec9; sau l\u00e0 \u0111\u1ecba ch\u1ec9 ngrok-free.dev, request \u0111i qua ngrok v\u1ec1 localhost:5678\" class=\"wp-image-131772\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-n8n-webhook-url.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-n8n-webhook-url-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-n8n-webhook-url-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-n8n-webhook-url-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<h3 id=\"Th\u1eed_nghi\u1ec7m_x\u00e2y_d\u1ef1ng_workflow_n8n_l\u1eafng_nghe_webhook_qua_ngrok\">Th\u1eed nghi\u1ec7m x\u00e2y d\u1ef1ng workflow n8n l\u1eafng nghe webhook qua ngrok<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ph\u1ea7n th\u1eed nghi\u1ec7m d\u01b0\u1edbi \u0111\u00e2y g\u1eedi m\u1ed9t request POST t\u1eeb Postman qua ngrok v\u00e0o node Webhook tr\u00ean m\u00e1y, \u0111\u1ec3 x\u00e1c nh\u1eadn \u0111\u01b0\u1eddng h\u1ea7m ho\u1ea1t \u0111\u1ed9ng.<\/p>\n\n\n\n<h4 id=\"T\u1ea1o_workflow_v\u00e0_l\u1ea5y_URL_webhook_t\u1eeb_n8n\">T\u1ea1o workflow v\u00e0 l\u1ea5y URL webhook t\u1eeb n8n<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">M\u1edf n8n, t\u1ea1o workflow m\u1edbi v\u00e0 th\u00eam node <strong>Webhook<\/strong>. Ch\u1ecdn ph\u01b0\u01a1ng th\u1ee9c <strong>POST<\/strong> r\u1ed3i nh\u1ea5n <strong>Listen for test event<\/strong>; n8n chuy\u1ec3n sang tr\u1ea1ng th\u00e1i ch\u1edd d\u1eef li\u1ec7u.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sau khi \u0111\u00e3 \u0111\u1eb7t <code>N8N_WEBHOOK_URL<\/code>, m\u1ee5c <strong>Test URL<\/strong> s\u1ebd c\u00f3 d\u1ea1ng:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:\/\/&lt;ten-ngau-nhien&gt;.ngrok-free.dev\/webhook-test\/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1292\" height=\"891\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-06.webp\" alt=\"Node Webhook trong n8n v\u1edbi Test URL, HTTP Method POST v\u00e0 n\u00fat Listen for test event (t\u00ean ng\u01b0\u1eddi d\u00f9ng \u0111\u00e3 l\u00e0m m\u1edd)\" class=\"wp-image-131778\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-06.webp 1292w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-06-300x207.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-06-1024x706.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-06-768x530.webp 768w\" sizes=\"(max-width: 1292px) 100vw, 1292px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u1ea2nh ch\u1ee5p l\u00fac ch\u01b0a \u0111\u1eb7t <code>N8N_WEBHOOK_URL<\/code> n\u00ean Test URL v\u1eabn l\u00e0 <code>http:\/\/localhost:5678\/webhook-test\/\u2026<\/code>. N\u1ebfu b\u1ea1n ch\u01b0a \u0111\u1eb7t bi\u1ebfn, c\u00f3 th\u1ec3 t\u1ef1 gh\u00e9p: thay ph\u1ea7n <code>http:\/\/localhost:5678<\/code> b\u1eb1ng \u0111\u1ecba ch\u1ec9 ngrok. C\u00e1ch gh\u00e9p tay ch\u1ec9 h\u1ee3p \u0111\u1ec3 th\u1eed nhanh m\u1ed9t l\u1ea7n; trigger t\u1ef1 \u0111\u0103ng k\u00fd webhook v\u1eabn c\u1ea7n bi\u1ebfn n\u00e0y.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>URL t\u1eeb ngrok:<\/strong> <code>https:\/\/unhectic-unfried-pearly.ngrok-free.dev<\/code><\/li>\n\n\n<li><strong>Ph\u1ea7n \u0111u\u00f4i URL t\u1eeb n8n (v\u00ed d\u1ee5):<\/strong> <code>\/webhook-test\/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx<\/code><\/li>\n\n\n<li><strong>URL th\u1eed nghi\u1ec7m:<\/strong> <code>https:\/\/unhectic-unfried-pearly.ngrok-free.dev\/webhook-test\/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx<\/code><\/li>\n<\/ul>\n\n\n\n<h4 id=\"G\u1eedi_y\u00eau_c\u1ea7u_th\u1eed_nghi\u1ec7m_v\u1edbi_Postman\">G\u1eedi y\u00eau c\u1ea7u th\u1eed nghi\u1ec7m v\u1edbi Postman<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>M\u1edf <a href=\"https:\/\/www.postman.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Postman<\/a>.<\/li>\n\n\n<li>T\u1ea1o request m\u1edbi, ch\u1ecdn ph\u01b0\u01a1ng th\u1ee9c <strong>POST<\/strong>.<\/li>\n\n\n<li>D\u00e1n Test URL \u1edf tr\u00ean v\u00e0o thanh \u0111\u1ecba ch\u1ec9.<\/li>\n\n\n<li>Chuy\u1ec3n sang tab <strong>Body<\/strong>, ch\u1ecdn <strong>raw<\/strong> v\u00e0 \u0111\u1ecbnh d\u1ea1ng <strong>JSON<\/strong>.<\/li>\n\n\n<li>D\u00e1n \u0111o\u1ea1n JSON m\u1eabu d\u01b0\u1edbi \u0111\u00e2y r\u1ed3i nh\u1ea5n <strong>Send<\/strong>.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"event\": \"new_user_signup\",\n  \"user_id\": \"usr_12345\",\n  \"name\": \"Nguyen Van A\",\n  \"status\": \"success\"\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1389\" height=\"779\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-07.webp\" alt=\"Postman g\u1eedi request POST \u0111\u1ebfn \u0111\u1ecba ch\u1ec9 ngrok-free.dev\/webhook-test v\u1edbi body JSON, nh\u1eadn 200 OK v\u00e0 message Workflow was started (t\u00ean trong d\u1eef li\u1ec7u m\u1eabu \u0111\u00e3 l\u00e0m m\u1edd)\" class=\"wp-image-131779\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-07.webp 1389w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-07-300x168.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-07-1024x574.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-07-768x431.webp 768w\" sizes=\"(max-width: 1389px) 100vw, 1389px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu th\u1ea5y <code>{\"message\": \"Workflow was started\"}<\/code> v\u1edbi m\u00e3 200 OK, request \u0111\u00e3 \u0111i qua ngrok v\u00e0 v\u00e0o n8n.<\/p>\n\n\n\n<h4 id=\"Ki\u1ec3m_tra_k\u1ebft_qu\u1ea3_trong_n8n\">Ki\u1ec3m tra k\u1ebft qu\u1ea3 trong n8n<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Quay l\u1ea1i n8n: tr\u1ea1ng th\u00e1i ch\u1edd bi\u1ebfn m\u1ea5t v\u00e0 node Webhook hi\u1ec3n th\u1ecb d\u1eef li\u1ec7u v\u1eeba g\u1eedi. D\u1eef li\u1ec7u JSON n\u1eb1m trong <code>body<\/code>, n\u00ean \u1edf c\u00e1c node sau b\u1ea1n \u0111\u1ecdc b\u1eb1ng <code>{{ $json.body.event }}<\/code> (<a href=\"https:\/\/docs.n8n.io\/integrations\/builtin\/core-nodes\/n8n-nodes-base.webhook\" target=\"_blank\" rel=\"noopener nofollow\">Webhook node<\/a>).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1480\" height=\"869\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-08.webp\" alt=\"Panel OUTPUT c\u1ee7a node Webhook hi\u1ec7n headers x-forwarded-host l\u00e0 \u0111\u1ecba ch\u1ec9 ngrok v\u00e0 body g\u1ed3m event, user_id, name, status (t\u00ean \u0111\u00e3 l\u00e0m m\u1edd)\" class=\"wp-image-131780\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-08.webp 1480w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-08-300x176.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-08-1024x601.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cai-dat-ngrok-va-tich-hop-n8n-tren-localhost-sua-08-768x451.webp 768w\" sizes=\"(max-width: 1480px) 100vw, 1480px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Trong headers c\u00f3 <code>x-forwarded-host<\/code> l\u00e0 \u0111\u1ecba ch\u1ec9 ngrok v\u00e0 <code>x-forwarded-proto: https<\/code>, cho th\u1ea5y request \u0111i qua \u0111\u01b0\u1eddng h\u1ea7m. Nh\u1edb nh\u1ea5n Publish workflow v\u00e0 d\u00f9ng Production URL khi mu\u1ed1n workflow nh\u1eadn webhook m\u00e0 kh\u00f4ng c\u1ea7n b\u1ea5m Listen.<\/p>\n\n\n\n<h2 id=\"G\u00f3i_Free_c\u1ee7a_ngrok_gi\u1edbi_h\u1ea1n_nh\u1eefng_g\u00ec?\">G\u00f3i Free c\u1ee7a ngrok gi\u1edbi h\u1ea1n nh\u1eefng g\u00ec?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">G\u00f3i Free c\u1ee7a ngrok \u0111\u1ee7 cho vi\u1ec7c th\u1eed webhook n8n, v\u1edbi c\u00e1c gi\u1edbi h\u1ea1n ch\u00ednh sau (<a href=\"https:\/\/ngrok.com\/pricing\" target=\"_blank\" rel=\"noopener nofollow\">ngrok.com\/pricing<\/a>, 23\/10\/2026):<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>H\u1ea1ng m\u1ee5c<\/th><th>G\u00f3i Free<\/th><\/tr><\/thead><tbody><tr><td>T\u00ean mi\u1ec1n<\/td><td>1 dev domain c\u1ed1 \u0111\u1ecbnh g\u1eafn v\u1edbi t\u00e0i kho\u1ea3n<\/td><\/tr><tr><td>Endpoint ch\u1ea1y c\u00f9ng l\u00fac<\/td><td>T\u1ed1i \u0111a 3<\/td><\/tr><tr><td>D\u1eef li\u1ec7u truy\u1ec1n<\/td><td>T\u1ed1i \u0111a 1GB<\/td><\/tr><tr><td>Request HTTP\/S<\/td><td>T\u1ed1i \u0111a 20.000 m\u1ed7i th\u00e1ng<\/td><\/tr><tr><td>Trang c\u1ea3nh b\u00e1o<\/td><td>C\u00f3 trang c\u1ea3nh b\u00e1o (interstitial) khi m\u1edf b\u1eb1ng tr\u00ecnh duy\u1ec7t<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Gi\u1edbi h\u1ea1n g\u00f3i Free c\u1ee7a ngrok theo ngrok.com\/pricing, truy c\u1eadp 23\/10\/2026<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Trang c\u1ea3nh b\u00e1o ch\u1ec9 hi\u1ec7n khi m\u1edf URL b\u1eb1ng tr\u00ecnh duy\u1ec7t; request t\u1eeb d\u1ecbch v\u1ee5 kh\u00e1c ho\u1eb7c Postman th\u01b0\u1eddng kh\u00f4ng b\u1ecb \u1ea3nh h\u01b0\u1edfng. N\u1ebfu c\u1ea7n b\u1ecf trang c\u1ea3nh b\u00e1o khi t\u1ef1 g\u1ecdi, th\u00eam header <code>ngrok-skip-browser-warning<\/code> v\u00e0o request.<\/p>\n\n\n\n<h2 id=\"Khi_n\u00e0o_kh\u00f4ng_n\u00ean_d\u00f9ng_ngrok_cho_n8n?\">Khi n\u00e0o kh\u00f4ng n\u00ean d\u00f9ng ngrok cho n8n?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Kh\u00f4ng n\u00ean d\u00f9ng ngrok cho n8n ch\u1ea1y th\u1eadt (production). M\u00e1y t\u00ednh ph\u1ea3i b\u1eadt li\u00ean t\u1ee5c, \u0111\u01b0\u1eddng h\u1ea7m ng\u1eaft khi \u0111\u00f3ng c\u1eeda s\u1ed5 ho\u1eb7c m\u1ea5t m\u1ea1ng, v\u00e0 g\u00f3i Free c\u00f3 gi\u1edbi h\u1ea1n request. Khi workflow c\u1ea7n nh\u1eadn webhook 24\/7, h\u00e3y \u0111\u01b0a n8n l\u00ean VPS c\u00f3 t\u00ean mi\u1ec1n v\u00e0 HTTPS ri\u00eang.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">C\u00e1c b\u01b0\u1edbc c\u00e0i n8n b\u1eb1ng Docker Compose tr\u00ean VPS: <a href=\"https:\/\/tino.vn\/blog\/cach-cai-dat-n8n-tren-vps\/\">h\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t n8n tr\u00ean VPS<\/a>. Kh\u00f4ng mu\u1ed1n t\u1ef1 c\u00e0i, c\u00f3 th\u1ec3 d\u00f9ng VPS \u0111\u00e3 c\u00e0i s\u1eb5n n8n.<\/p>\n\n\n\n<h2 id=\"K\u1ebft_lu\u1eadn\">K\u1ebft lu\u1eadn<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">V\u1edbi ngrok, n8n tr\u00ean m\u00e1y t\u00ednh nh\u1eadn \u0111\u01b0\u1ee3c webhook th\u1eadt \u0111\u1ec3 th\u1eed v\u00e0 g\u1ee1 l\u1ed7i workflow. B\u1ed1n vi\u1ec7c c\u1ea7n nh\u1edb: th\u00eam authtoken, ch\u1ea1y <code>ngrok http 5678<\/code>, \u0111\u1eb7t <code>N8N_WEBHOOK_URL<\/code> b\u1eb1ng dev domain r\u1ed3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i n8n, v\u00e0 gi\u1eef c\u1eeda s\u1ed5 ngrok m\u1edf trong l\u00fac th\u1eed.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Mu\u1ed1n ch\u1ea1y n8n 24\/7 m\u00e0 kh\u00f4ng t\u1ef1 c\u00e0i? <a href=\"https:\/\/tino.vn\/vps-n8n\">VPS n8n c\u1ee7a Tino<\/a> c\u00e0i s\u1eb5n n8n tr\u00ean VPS NVMe \u0111\u1eb7t t\u1ea1i Vi\u1ec7t Nam; b\u1ea1n v\u1eabn c\u00f3 quy\u1ec1n root \u0111\u1ec3 c\u1ea5u h\u00ecnh. Xem c\u1ea5u h\u00ecnh v\u00e0 gi\u00e1 tr\u00ean trang s\u1ea3n ph\u1ea9m.<\/p>\n<\/blockquote>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\">Nh\u1eefng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/h2>\n\n\n\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"S\u1eed_d\u1ee5ng_ngrok_c\u00f3_t\u1ed1n_ph\u00ed_kh\u00f4ng?\">S\u1eed d\u1ee5ng ngrok c\u00f3 t\u1ed1n ph\u00ed kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Kh\u00f4ng, v\u1edbi nhu c\u1ea7u th\u1eed nghi\u1ec7m. G\u00f3i Free c\u00f3 1 dev domain c\u1ed1 \u0111\u1ecbnh, t\u1ed1i \u0111a 1GB d\u1eef li\u1ec7u truy\u1ec1n v\u00e0 20.000 request HTTP\/S m\u1ed7i th\u00e1ng, k\u00e8m trang c\u1ea3nh b\u00e1o khi m\u1edf b\u1eb1ng tr\u00ecnh duy\u1ec7t (ngrok.com\/pricing, 23\/10\/2026).<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"Vi\u1ec7c_m\u1edf_m\u1ed9t_\u201c\u0111\u01b0\u1eddng_h\u1ea7m\u201d_ra_Internet_nh\u01b0_v\u1eady_c\u00f3_an_to\u00e0n_kh\u00f4ng?\">Vi\u1ec7c m\u1edf m\u1ed9t \u201c\u0111\u01b0\u1eddng h\u1ea7m\u201d ra Internet nh\u01b0 v\u1eady c\u00f3 an to\u00e0n kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">T\u01b0\u01a1ng \u0111\u1ed1i an to\u00e0n n\u1ebfu d\u00f9ng \u0111\u00fang c\u00e1ch. ngrok ch\u1ec9 m\u1edf \u0111\u00fang c\u1ed5ng b\u1ea1n ch\u1ec9 \u0111\u1ecbnh (5678) v\u00e0 k\u1ebft n\u1ed1i \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a HTTPS. Tuy nhi\u00ean ai bi\u1ebft URL \u0111\u1ec1u m\u1edf \u0111\u01b0\u1ee3c giao di\u1ec7n n8n, n\u00ean h\u00e3y \u0111\u1eb7t m\u1eadt kh\u1ea9u m\u1ea1nh cho t\u00e0i kho\u1ea3n owner, gi\u1eef k\u00edn authtoken v\u00e0 t\u1eaft ngrok khi kh\u00f4ng d\u00f9ng.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"URL_c\u1ee7a_ngrok_c\u00f3_\u0111\u1ed5i_m\u1ed7i_l\u1ea7n_t\u00f4i_kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_kh\u00f4ng?\">URL c\u1ee7a ngrok c\u00f3 \u0111\u1ed5i m\u1ed7i l\u1ea7n t\u00f4i kh\u1edfi \u0111\u1ed9ng l\u1ea1i kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Kh\u00f4ng, v\u1edbi t\u00e0i kho\u1ea3n hi\u1ec7n nay. M\u1ed7i t\u00e0i kho\u1ea3n ngrok Free \u0111\u01b0\u1ee3c c\u1ea5p m\u1ed9t dev domain c\u1ed1 \u0111\u1ecbnh, n\u00ean l\u1ec7nh ngrok http 5678 lu\u00f4n d\u00f9ng c\u00f9ng \u0111\u1ecba ch\u1ec9. Nh\u1edd v\u1eady b\u1ea1n ch\u1ec9 c\u1ea7n \u0111\u1eb7t N8N_WEBHOOK_URL m\u1ed9t l\u1ea7n.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"T\u00f4i_c\u00f3_b\u1eaft_bu\u1ed9c_ph\u1ea3i_\u0111\u1ec3_c\u1eeda_s\u1ed5_Terminal\/PowerShell_c\u1ee7a_ngrok_ch\u1ea1y_kh\u00f4ng?\">T\u00f4i c\u00f3 b\u1eaft bu\u1ed9c ph\u1ea3i \u0111\u1ec3 c\u1eeda s\u1ed5 Terminal\/PowerShell c\u1ee7a ngrok ch\u1ea1y kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">C\u00f3. C\u1eeda s\u1ed5 \u0111\u00f3 gi\u1eef \u0111\u01b0\u1eddng h\u1ea7m. \u0110\u00f3ng n\u00f3 l\u1ea1i th\u00ec URL c\u00f4ng khai ng\u1eebng ho\u1ea1t \u0111\u1ed9ng v\u00e0 d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i kh\u00f4ng g\u1eedi \u0111\u01b0\u1ee3c webhook.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"n8n_c\u00f3_l\u1ec7nh_&#8211;tunnel_s\u1eb5n_kh\u00f4ng,_c\u00f3_c\u1ea7n_ngrok_n\u1eefa_kh\u00f4ng?\">n8n c\u00f3 l\u1ec7nh &#8211;tunnel s\u1eb5n kh\u00f4ng, c\u00f3 c\u1ea7n ngrok n\u1eefa kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">n8n 2.0 \u0111\u00e3 g\u1ee1 l\u1ec7nh n8n start &#8211;tunnel. \u0110\u1ec3 th\u1eed webhook tr\u00ean m\u00e1y t\u00ednh, b\u1ea1n d\u00f9ng c\u00f4ng c\u1ee5 b\u00ean ngo\u00e0i nh\u01b0 ngrok, localtunnel ho\u1eb7c Cloudflare Tunnel.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"C\u00f3_c\u00f4ng_c\u1ee5_n\u00e0o_kh\u00e1c_thay_th\u1ebf_cho_ngrok_kh\u00f4ng?\">C\u00f3 c\u00f4ng c\u1ee5 n\u00e0o kh\u00e1c thay th\u1ebf cho ngrok kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">C\u00f3. Cloudflare Tunnel (c\u1ea7n t\u00ean mi\u1ec1n \u0111\u1eb7t tr\u00ean Cloudflare), localtunnel, localhost.run l\u00e0 c\u00e1c l\u1ef1a ch\u1ecdn ph\u1ed5 bi\u1ebfn. D\u00f9 d\u00f9ng c\u00f4ng c\u1ee5 n\u00e0o, v\u1eabn c\u1ea7n \u0111\u1eb7t N8N_WEBHOOK_URL b\u1eb1ng \u0111\u1ecba ch\u1ec9 c\u00f4ng khai c\u1ee7a tunnel.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\n<script type=\"application\/ld+json\">\n\t{\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"S\u1eed d\u1ee5ng ngrok c\u00f3 t\u1ed1n ph\u00ed kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Kh\u00f4ng, v\u1edbi nhu c\u1ea7u th\u1eed nghi\u1ec7m. G\u00f3i Free c\u00f3 1 dev domain c\u1ed1 \u0111\u1ecbnh, t\u1ed1i \u0111a 1GB d\u1eef li\u1ec7u truy\u1ec1n v\u00e0 20.000 request HTTP\/S m\u1ed7i th\u00e1ng, k\u00e8m trang c\u1ea3nh b\u00e1o khi m\u1edf b\u1eb1ng tr\u00ecnh duy\u1ec7t (ngrok.com\/pricing, 23\/10\/2026).<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"Vi\u1ec7c m\u1edf m\u1ed9t \u201c\u0111\u01b0\u1eddng h\u1ea7m\u201d ra Internet nh\u01b0 v\u1eady c\u00f3 an to\u00e0n kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>T\u01b0\u01a1ng \u0111\u1ed1i an to\u00e0n n\u1ebfu d\u00f9ng \u0111\u00fang c\u00e1ch. ngrok ch\u1ec9 m\u1edf \u0111\u00fang c\u1ed5ng b\u1ea1n ch\u1ec9 \u0111\u1ecbnh (5678) v\u00e0 k\u1ebft n\u1ed1i \u0111\u01b0\u1ee3c m\u00e3 h\u00f3a HTTPS. Tuy nhi\u00ean ai bi\u1ebft URL \u0111\u1ec1u m\u1edf \u0111\u01b0\u1ee3c giao di\u1ec7n n8n, n\u00ean h\u00e3y \u0111\u1eb7t m\u1eadt kh\u1ea9u m\u1ea1nh cho t\u00e0i kho\u1ea3n owner, gi\u1eef k\u00edn authtoken v\u00e0 t\u1eaft ngrok khi kh\u00f4ng d\u00f9ng.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"URL c\u1ee7a ngrok c\u00f3 \u0111\u1ed5i m\u1ed7i l\u1ea7n t\u00f4i kh\u1edfi \u0111\u1ed9ng l\u1ea1i kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Kh\u00f4ng, v\u1edbi t\u00e0i kho\u1ea3n hi\u1ec7n nay. M\u1ed7i t\u00e0i kho\u1ea3n ngrok Free \u0111\u01b0\u1ee3c c\u1ea5p m\u1ed9t dev domain c\u1ed1 \u0111\u1ecbnh, n\u00ean l\u1ec7nh ngrok http 5678 lu\u00f4n d\u00f9ng c\u00f9ng \u0111\u1ecba ch\u1ec9. Nh\u1edd v\u1eady b\u1ea1n ch\u1ec9 c\u1ea7n \u0111\u1eb7t N8N_WEBHOOK_URL m\u1ed9t l\u1ea7n.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"T\u00f4i c\u00f3 b\u1eaft bu\u1ed9c ph\u1ea3i \u0111\u1ec3 c\u1eeda s\u1ed5 Terminal\/PowerShell c\u1ee7a ngrok ch\u1ea1y kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3. C\u1eeda s\u1ed5 \u0111\u00f3 gi\u1eef \u0111\u01b0\u1eddng h\u1ea7m. \u0110\u00f3ng n\u00f3 l\u1ea1i th\u00ec URL c\u00f4ng khai ng\u1eebng ho\u1ea1t \u0111\u1ed9ng v\u00e0 d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i kh\u00f4ng g\u1eedi \u0111\u01b0\u1ee3c webhook.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"n8n c\u00f3 l\u1ec7nh --tunnel s\u1eb5n kh\u00f4ng, c\u00f3 c\u1ea7n ngrok n\u1eefa kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>n8n 2.0 \u0111\u00e3 g\u1ee1 l\u1ec7nh n8n start --tunnel. \u0110\u1ec3 th\u1eed webhook tr\u00ean m\u00e1y t\u00ednh, b\u1ea1n d\u00f9ng c\u00f4ng c\u1ee5 b\u00ean ngo\u00e0i nh\u01b0 ngrok, localtunnel ho\u1eb7c Cloudflare Tunnel.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"C\u00f3 c\u00f4ng c\u1ee5 n\u00e0o kh\u00e1c thay th\u1ebf cho ngrok kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>C\u00f3. Cloudflare Tunnel (c\u1ea7n t\u00ean mi\u1ec1n \u0111\u1eb7t tr\u00ean Cloudflare), localtunnel, localhost.run l\u00e0 c\u00e1c l\u1ef1a ch\u1ecdn ph\u1ed5 bi\u1ebfn. D\u00f9 d\u00f9ng c\u00f4ng c\u1ee5 n\u00e0o, v\u1eabn c\u1ea7n \u0111\u1eb7t N8N_WEBHOOK_URL b\u1eb1ng \u0111\u1ecba ch\u1ec9 c\u00f4ng khai c\u1ee7a tunnel.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>ngrok t\u1ea1o m\u1ed9t \u0111\u1ecba ch\u1ec9 HTTPS c\u00f4ng khai chuy\u1ec3n ti\u1ebfp v\u1ec1 n8n \u0111ang ch\u1ea1y \u1edf localhost:5678, nh\u1edd \u0111\u00f3 d\u1ecbch v\u1ee5 b\u00ean ngo\u00e0i g\u1eedi \u0111\u01b0\u1ee3c webhook v\u00e0o m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n. C\u00e1ch l\u00e0m: c\u00e0i ngrok, th\u00eam authtoken, ch\u1ea1y ngrok http 5678, \u0111\u1eb7t N8N_WEBHOOK_URL b\u1eb1ng \u0111\u1ecba ch\u1ec9 ngrok r\u1ed3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i n8n. Ch\u1ec9 d\u00f9ng \u0111\u1ec3 th\u1eed, [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":120188,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7397],"tags":[7343],"class_list":["post-120196","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-n8n","tag-n8n"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/120196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=120196"}],"version-history":[{"count":3,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/120196\/revisions"}],"predecessor-version":[{"id":131877,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/120196\/revisions\/131877"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/120188"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=120196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=120196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=120196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}