{"id":1439,"date":"2025-10-10T15:26:14","date_gmt":"2025-10-10T08:26:14","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/?post_type=docs&#038;p=1439"},"modified":"2025-11-12T16:23:24","modified_gmt":"2025-11-12T09:23:24","slug":"deployment-on-iis","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/axng\/development\/deployment-on-iis\/","title":{"rendered":"Deployment on IIS"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"deployment-on-iis\">Deployment on IIS<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e2d\u0e07-production\">\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e2d\u0e07 Production<\/h2>\n\n\n\n<p>\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e40\u0e2b\u0e47\u0e19\u0e20\u0e32\u0e1e\u0e21\u0e32\u0e01\u0e22\u0e34\u0e48\u0e07\u0e02\u0e36\u0e49\u0e19 \u0e02\u0e2d\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 Url \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e27\u0e47\u0e1a\u0e41\u0e2d\u0e1e\u0e2f \u0e41\u0e25\u0e30\u0e40\u0e27\u0e47\u0e1a\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e27\u0e34\u0e2a\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e40\u0e27\u0e47\u0e1a\u0e41\u0e2d\u0e1e\u0e2f:\u00a0<a href=\"https:\/\/appserver2.cdg.co.th\/demo\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/appserver2.cdg.co.th\/demo<\/a><\/li>\n\n\n\n<li>\u0e40\u0e27\u0e47\u0e1a\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e27\u0e34\u0e2a:\u00a0<a href=\"https:\/\/appserver2.cdg.co.th\/demo-service\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/appserver2.cdg.co.th\/demo-service<\/a><\/li>\n\n\n\n<li>API Gateway:\u00a0<a href=\"https:\/\/appserver2.cdg.co.th\/demo-gateway\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/appserver2.cdg.co.th\/demo-gateway<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32-front-end\">\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 Front-end<\/h3>\n\n\n\n<p>\u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e01\u0e49\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07&nbsp;<code>webServiceUrl<\/code>&nbsp;\u0e41\u0e25\u0e30&nbsp;<code>callbackUri<\/code>&nbsp;\u0e15\u0e32\u0e21\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<p><em>File: environments\/environment.prod.ts<\/em><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>import { AxAuthenticationConfig } from '@atlasx\/core\/authentication'\nimport { ApplicationConfig } from '..\/app\/core\/config\/application.config'\n\nexport const environment: ApplicationConfig &amp; AxAuthenticationConfig = {\n  production: true,\n  webServiceUrl: 'https:\/\/appserver2.cdg.co.th\/demo-service', \/\/ &lt;&lt;&lt; Edit url\n\n  \/\/ OAuth client information.\n  clientId: 'random-some-text-ajskdlf;',\n  clientSecret: '02FZf68\/Xff0hrSQgc7Je5CNgdjaSgltNU4gb3AbJ9A=',\n\n  \/\/ When use full secure authentication, application are required\n  \/\/ the callbackUri property.\n  fullSecureAuthentication: true,\n  callbackUri: 'https:\/\/appserver2.cdg.co.th\/demo\/callback', \/\/ &lt;&lt;&lt; Edit url\n\n  \/\/ If not use full secure authentication, application are required\n  \/\/ the loginUri property.\n  \/\/ fullSecureAuthentication: false,\n  \/\/ loginUri: 'https:\/\/atlasx.cdg.co.th\/axwa-demo\/login'\n}<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #AF00DB\">import<\/span><span style=\"color: #000000\"> { <\/span><span style=\"color: #001080\">AxAuthenticationConfig<\/span><span style=\"color: #000000\"> } <\/span><span style=\"color: #AF00DB\">from<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #A31515\">&#39;@atlasx\/core\/authentication&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">import<\/span><span style=\"color: #000000\"> { <\/span><span style=\"color: #001080\">ApplicationConfig<\/span><span style=\"color: #000000\"> } <\/span><span style=\"color: #AF00DB\">from<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #A31515\">&#39;..\/app\/core\/config\/application.config&#39;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #AF00DB\">export<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">const<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0070C1\">environment<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #267F99\">ApplicationConfig<\/span><span style=\"color: #000000\"> &amp; <\/span><span style=\"color: #267F99\">AxAuthenticationConfig<\/span><span style=\"color: #000000\"> = {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #001080\">production:<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">true<\/span><span style=\"color: #000000\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #001080\">webServiceUrl:<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #A31515\">&#39;https:\/\/appserver2.cdg.co.th\/demo-service&#39;<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #008000\">\/\/ &lt;&lt;&lt; Edit url<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #008000\">\/\/ OAuth client information.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #001080\">clientId:<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #A31515\">&#39;random-some-text-ajskdlf;&#39;<\/span><span style=\"color: #000000\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #001080\">clientSecret:<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #A31515\">&#39;02FZf68\/Xff0hrSQgc7Je5CNgdjaSgltNU4gb3AbJ9A=&#39;<\/span><span style=\"color: #000000\">,<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #008000\">\/\/ When use full secure authentication, application are required<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #008000\">\/\/ the callbackUri property.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #001080\">fullSecureAuthentication:<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">true<\/span><span style=\"color: #000000\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #001080\">callbackUri:<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #A31515\">&#39;https:\/\/appserver2.cdg.co.th\/demo\/callback&#39;<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #008000\">\/\/ &lt;&lt;&lt; Edit url<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #008000\">\/\/ If not use full secure authentication, application are required<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #008000\">\/\/ the loginUri property.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #008000\">\/\/ fullSecureAuthentication: false,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">  <\/span><span style=\"color: #008000\">\/\/ loginUri: &#39;https:\/\/atlasx.cdg.co.th\/axwa-demo\/login&#39;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u0e1a\u0e34\u0e27\u0e15\u0e4c\u0e41\u0e2d\u0e1e\u0e2f-\u0e41\u0e25\u0e30\u0e19\u0e33\u0e44\u0e1b\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e1a\u0e19-iis\">\u0e1a\u0e34\u0e27\u0e15\u0e4c\u0e41\u0e2d\u0e1e\u0e2f \u0e41\u0e25\u0e30\u0e19\u0e33\u0e44\u0e1b\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e1a\u0e19 IIS<\/h2>\n\n\n\n<p>\u0e01\u0e48\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23 Build \u0e41\u0e25\u0e30\u0e19\u0e33\u0e44\u0e1b Deploy \u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e01\u0e32\u0e23&nbsp;<a href=\"https:\/\/portal-atlasx.cdg.co.th\/#\">\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 .NET Core Hosting Bundle<\/a>&nbsp;\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e40\u0e0b\u0e34\u0e23\u0e4c\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e01\u0e48\u0e2d\u0e19 \u0e01\u0e23\u0e13\u0e35\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e0b\u0e34\u0e23\u0e4c\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e01\u0e25\u0e32\u0e07\u0e08\u0e30\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e21\u0e32\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22 \u0e44\u0e21\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49 \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e17\u0e33\u0e01\u0e32\u0e23<a href=\"https:\/\/portal-atlasx.cdg.co.th\/#\">\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e41\u0e2d\u0e1e\u0e1a\u0e19 IIS<\/a>&nbsp;\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22 \u0e41\u0e25\u0e49\u0e27\u0e17\u0e33\u0e01\u0e32\u0e23 Build \u0e42\u0e04\u0e49\u0e14\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e33\u0e44\u0e1b Deploy \u0e15\u0e32\u0e21\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e14\u0e31\u0e07\u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e19\u0e35\u0e49<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Build front-end \u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>npx ng build --prod --base-href=\"\/demo\/\" --output-path=\"..\\dist\"<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">npx<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">ng<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">build<\/span><span style=\"color: #000000\"> --<\/span><span style=\"color: #001080\">prod<\/span><span style=\"color: #000000\"> --<\/span><span style=\"color: #001080\">base<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">href<\/span><span style=\"color: #000000\">=<\/span><span style=\"color: #A31515\">&quot;\/demo\/&quot;<\/span><span style=\"color: #000000\"> --<\/span><span style=\"color: #001080\">output<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">path<\/span><span style=\"color: #000000\">=<\/span><span style=\"color: #A31515\">&quot;..<\/span><span style=\"color: #EE0000\">\\d<\/span><span style=\"color: #A31515\">ist&quot;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>\u0e19\u0e33\u0e42\u0e04\u0e49\u0e14\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23 Build \u0e43\u0e19\u0e42\u0e1f\u0e25\u0e4c\u0e40\u0e14\u0e2d\u0e23\u0e4c\u00a0<code>dist<\/code>\u00a0\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e44\u0e1b\u0e27\u0e32\u0e07\u0e44\u0e27\u0e49\u0e43\u0e19\u0e42\u0e1f\u0e25\u0e4c\u0e40\u0e14\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e40\u0e15\u0e23\u0e35\u0e22\u0e21\u0e44\u0e27\u0e49\u0e1a\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e40\u0e0b\u0e34\u0e23\u0e4c\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c<\/li>\n\n\n\n<li>\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e27\u0e47\u0e1a\u0e1a\u0e23\u0e32\u0e27\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e41\u0e25\u0e49\u0e27\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e17\u0e35\u0e48\u00a0<a href=\"https:\/\/appserver2.cdg.co.th\/demo\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/appserver2.cdg.co.th\/demo<\/a>\u00a0\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e40\u0e25\u0e48\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e41\u0e2d\u0e1e\u0e2f \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e27\u0e48\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e1b\u0e01\u0e15\u0e34\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48<\/li>\n<\/ol>\n","protected":false},"featured_media":0,"parent":1437,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-1439","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/comments?post=1439"}],"version-history":[{"count":2,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1439\/revisions"}],"predecessor-version":[{"id":3317,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1439\/revisions\/3317"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1437"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=1439"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=1439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}