{"id":1184,"date":"2025-10-09T07:17:43","date_gmt":"2025-10-09T00:17:43","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/atlasx-web-service-v8-0\/fundamentals\/environments\/"},"modified":"2026-03-27T08:38:50","modified_gmt":"2026-03-27T01:38:50","slug":"environments","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/axws\/fundamentals\/environments\/","title":{"rendered":"Environments"},"content":{"rendered":"\n\n\n<p>\u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e22\u0e01\u0e04\u0e48\u0e32 configuration \u0e17\u0e35\u0e48\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01 code \u0e42\u0e14\u0e22\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49\u0e43\u0e19\u0e44\u0e1f\u0e25\u0e4c&nbsp;<code>.env<\/code>&nbsp;\u0e41\u0e17\u0e19 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e2d\u0e22\u0e48\u0e32\u0e07 connection string \u0e41\u0e25\u0e30 credentials \u0e2b\u0e25\u0e38\u0e14\u0e40\u0e02\u0e49\u0e32 Git repository<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Setup<\/strong><\/h2>\n\n\n\n<p>copy \u0e44\u0e1f\u0e25\u0e4c&nbsp;<code>.env.example<\/code>&nbsp;\u0e40\u0e1b\u0e47\u0e19&nbsp;<code>.env<\/code>&nbsp;\u0e41\u0e25\u0e49\u0e27\u0e41\u0e01\u0e49\u0e04\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a environment \u0e02\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e40\u0e2d\u0e07 \u0e42\u0e14\u0e22\u0e44\u0e1f\u0e25\u0e4c&nbsp;<code>.env<\/code>&nbsp;\u0e08\u0e30\u0e16\u0e39\u0e01 ignore \u0e42\u0e14\u0e22&nbsp;<code>.gitignore<\/code>&nbsp;\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34<\/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:#D4D4D4;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>cp .env.example .env<\/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 dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">cp<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">.env.example<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">.env<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>IIS Setup<\/strong><\/h2>\n\n\n\n<p>\u0e43\u0e19 IIS \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32 Environment Variables \u0e44\u0e14\u0e49\u0e08\u0e32\u0e01 System Environment \u0e02\u0e2d\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 \u0e42\u0e14\u0e22\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23 deploy \u0e2b\u0e25\u0e32\u0e22\u0e41\u0e2d\u0e1b\u0e1e\u0e25\u0e34\u0e40\u0e04\u0e0a\u0e31\u0e19\u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e41\u0e19\u0e27\u0e17\u0e32\u0e07\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14 Prefix \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e41\u0e22\u0e01\u0e0a\u0e38\u0e14\u0e04\u0e48\u0e32\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01\u0e02\u0e2d\u0e07\u0e41\u0e15\u0e48\u0e25\u0e30\u0e41\u0e2d\u0e1b\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e31\u0e19\u0e44\u0e14\u0e49<\/p>\n\n\n\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19 \u0e08\u0e32\u0e01\u0e40\u0e14\u0e34\u0e21\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e04\u0e48\u0e32 <code>DataSource__Provider=ORACLE<\/code> \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e1b\u0e23\u0e31\u0e1a\u0e43\u0e2b\u0e49\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e2b\u0e25\u0e32\u0e22\u0e41\u0e2d\u0e1b\u0e1e\u0e25\u0e34\u0e40\u0e04\u0e0a\u0e31\u0e19\u0e44\u0e14\u0e49\u0e42\u0e14\u0e22\u0e40\u0e1e\u0e34\u0e48\u0e21 Prefix \u0e02\u0e2d\u0e07\u0e0a\u0e37\u0e48\u0e2d\u0e41\u0e2d\u0e1b\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b \u0e40\u0e0a\u0e48\u0e19 <code>App1__DataSource__Provider=ORACLE<\/code> \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e41\u0e22\u0e01 Environment \u0e02\u0e2d\u0e07\u0e41\u0e15\u0e48\u0e25\u0e30\u0e41\u0e2d\u0e1b\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e0a\u0e31\u0e14\u0e40\u0e08\u0e19<\/p>\n\n\n\n<p>\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e43\u0e19\u0e1d\u0e31\u0e48\u0e07 .NET \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e43\u0e19 <code>Program.cs<\/code> \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 <code>AddEnvironmentVariables<\/code> \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e23\u0e30\u0e1a\u0e38 Prefix \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e23\u0e30\u0e1a\u0e1a\u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32 Environment Variables \u0e41\u0e25\u0e30\u0e15\u0e31\u0e14 Prefix \u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e2d\u0e2d\u0e01\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e17\u0e33\u0e43\u0e2b\u0e49\u0e41\u0e2d\u0e1b\u0e1e\u0e25\u0e34\u0e40\u0e04\u0e0a\u0e31\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e04\u0e48\u0e32 Configuration \u0e44\u0e14\u0e49\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e40\u0e14\u0e34\u0e21 \u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e01\u0e49\u0e42\u0e04\u0e49\u0e14\u0e2a\u0e48\u0e27\u0e19\u0e2d\u0e37\u0e48\u0e19\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32 <code>AddEnvironmentVariables<\/code><\/h3>\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:#D4D4D4;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>builder.Configuration.AddEnvironmentVariables(prefix: \"App1__\");<\/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 dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">builder<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">Configuration<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #DCDCAA\">AddEnvironmentVariables<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">prefix<\/span><span style=\"color: #D4D4D4\">: <\/span><span style=\"color: #CE9178\">&quot;App1__&quot;<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14 System Environment<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"308\" src=\"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-content\/uploads\/2025\/10\/Group-1000002761.png\" alt=\"\" class=\"wp-image-4200\" srcset=\"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-content\/uploads\/2025\/10\/Group-1000002761.png 622w, https:\/\/portal-atlasx.cdg.co.th\/home\/wp-content\/uploads\/2025\/10\/Group-1000002761-300x149.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Environment Variables<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading\"><strong>DataSource<\/strong><\/h3>\n\n\n\n<p>\u0e01\u0e33\u0e2b\u0e19\u0e14 connection string \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e25\u0e31\u0e01\u0e41\u0e25\u0e30\u0e23\u0e2d\u0e07 \u0e14\u0e39\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48&nbsp;<a href=\"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/atlasx-web-service-8\/features\/connect-to-database\/\">Feature: Connect to Database<\/a><\/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:#D4D4D4;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># \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e25\u0e31\u0e01\nDataSource__Provider=ORACLE\nDataSource__ConnectionString=Data Source=...\n\n# \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e2d\u0e07 (Local)\nDataSource__Local__Provider=MSSQL\nDataSource__Local__ConnectionString=Data Source=...<\/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 dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\"># \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e25\u0e31\u0e01<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">DataSource__Provider<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">ORACLE<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">DataSource__ConnectionString<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">Data<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">Source<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">...<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\"># \u0e10\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e2d\u0e07 (Local)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">DataSource__Local__Provider<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">MSSQL<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">DataSource__Local__ConnectionString<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">Data<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">Source<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">...<\/span><\/span><\/code><\/pre><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading\"><strong>Redis<\/strong><\/h3>\n\n\n\n<p>\u0e01\u0e33\u0e2b\u0e19\u0e14 connection string \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Redis<\/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:#D4D4D4;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>Redis__ConnectionString=localhost:6379<\/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 dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">Redis__ConnectionString<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">localhost:6379<\/span><\/span><\/code><\/pre><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading\"><strong>LDAP<\/strong><\/h3>\n\n\n\n<p>\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d LDAP server \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a authenticate \u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e1c\u0e48\u0e32\u0e19 Active Directory \u0e2b\u0e23\u0e37\u0e2d LDAP \u0e02\u0e2d\u0e07\u0e2d\u0e07\u0e04\u0e4c\u0e01\u0e23<\/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:#D4D4D4;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>App__LDAP__Host=&lt;IP_OR_DOMAIN>\nApp__LDAP__Port=389\nApp__LDAP__SecureSocketLayer=false\nApp__LDAP__DistinguishedName=&lt;OU>\nApp__LDAP__AdminUser=&lt;EMAIL_LDAP>\nApp__LDAP__AdminPassword=&lt;PASSWORD_LDAP>\nApp__LDAP__UserIdField=samaccountname\nApp__LDAP__UsernameField=samaccountname\nApp__LDAP__FirstNameField=givenname\nApp__LDAP__LastNameField=sn\nApp__LDAP__MailField=mail<\/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 dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__Host<\/span><span style=\"color: #D4D4D4\">=&lt;<\/span><span style=\"color: #CE9178\">IP_OR_DOMAI<\/span><span style=\"color: #D4D4D4\">N&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__Port<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #B5CEA8\">389<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__SecureSocketLayer<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #569CD6\">false<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__DistinguishedName<\/span><span style=\"color: #D4D4D4\">=&lt;<\/span><span style=\"color: #CE9178\">O<\/span><span style=\"color: #D4D4D4\">U&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__AdminUser<\/span><span style=\"color: #D4D4D4\">=&lt;<\/span><span style=\"color: #CE9178\">EMAIL_LDA<\/span><span style=\"color: #D4D4D4\">P&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__AdminPassword<\/span><span style=\"color: #D4D4D4\">=&lt;<\/span><span style=\"color: #CE9178\">PASSWORD_LDA<\/span><span style=\"color: #D4D4D4\">P&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__UserIdField<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">samaccountname<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__UsernameField<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">samaccountname<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__FirstNameField<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">givenname<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__LastNameField<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">sn<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__LDAP__MailField<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">mail<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Field<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>Host<\/code><\/td><td>IP address \u0e2b\u0e23\u0e37\u0e2d domain \u0e02\u0e2d\u0e07 LDAP server<\/td><\/tr><tr><td><code>Port<\/code><\/td><td>Port \u0e02\u0e2d\u0e07 LDAP server \u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19&nbsp;<code>389<\/code><\/td><\/tr><tr><td><code>SecureSocketLayer<\/code><\/td><td>\u0e40\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49 SSL \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d LDAP<\/td><\/tr><tr><td><code>DistinguishedName<\/code><\/td><td>OU path \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e49\u0e19\u0e2b\u0e32 user \u0e43\u0e19 LDAP<\/td><\/tr><tr><td><code>AdminUser<\/code><\/td><td>\u0e2d\u0e35\u0e40\u0e21\u0e25\u0e2b\u0e23\u0e37\u0e2d username \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a authenticate \u0e01\u0e31\u0e1a LDAP<\/td><\/tr><tr><td><code>AdminPassword<\/code><\/td><td>\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a authenticate \u0e01\u0e31\u0e1a LDAP<\/td><\/tr><tr><td><code>UserIdField<\/code><\/td><td>\u0e0a\u0e37\u0e48\u0e2d attribute \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19 user ID<\/td><\/tr><tr><td><code>UsernameField<\/code><\/td><td>\u0e0a\u0e37\u0e48\u0e2d attribute \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19 username<\/td><\/tr><tr><td><code>FirstNameField<\/code><\/td><td>\u0e0a\u0e37\u0e48\u0e2d attribute \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e37\u0e48\u0e2d\u0e08\u0e23\u0e34\u0e07<\/td><\/tr><tr><td><code>LastNameField<\/code><\/td><td>\u0e0a\u0e37\u0e48\u0e2d attribute \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e19\u0e32\u0e21\u0e2a\u0e01\u0e38\u0e25<\/td><\/tr><tr><td><code>MailField<\/code><\/td><td>\u0e0a\u0e37\u0e48\u0e2d attribute \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e35\u0e40\u0e21\u0e25<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading\"><strong>Email<\/strong><\/h3>\n\n\n\n<p>\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d SMTP server \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2a\u0e48\u0e07\u0e2d\u0e35\u0e40\u0e21\u0e25 \u0e14\u0e39\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48&nbsp;<a href=\"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/atlasx-web-service-8\/features\/connect-to-mail-server\/\">Feature: Connect to Mail Server<\/a><\/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:#D4D4D4;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>App__Email__SERVER=10.254.7.15\nApp__Email__PORT=25\nApp__Email__ENABLESSL=false\nApp__Email__USERNAME=username@domain.com\nApp__Email__PASSWORD=password\nApp__Email__SENDERADDRESS=sender@domain.com|Sender Name\nApp__Email__FROMPARAMETER=FROM\nApp__Email__TOPARAMETER=TO\nApp__Email__CCPARAMETER=CC\nApp__Email__BCCPARAMETER=BCC\nApp__Email__SUBJECTPARAMETER=SUBJECT\nApp__Email__BODYPARAMETER=BODY\nApp__Email__PRIORITYPARAMETER=PRIORITY<\/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 dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__SERVER<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #B5CEA8\">10.254<\/span><span style=\"color: #CE9178\">.7.15<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__PORT<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #B5CEA8\">25<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__ENABLESSL<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #569CD6\">false<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__USERNAME<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">username@domain.com<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__PASSWORD<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">password<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__SENDERADDRESS<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">sender@domain.com<\/span><span style=\"color: #D4D4D4\">|<\/span><span style=\"color: #CE9178\">Sender<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">Name<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__FROMPARAMETER<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">FROM<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__TOPARAMETER<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">TO<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__CCPARAMETER<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">CC<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__BCCPARAMETER<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">BCC<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__SUBJECTPARAMETER<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">SUBJECT<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__BODYPARAMETER<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">BODY<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Email__PRIORITYPARAMETER<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">PRIORITY<\/span><\/span><\/code><\/pre><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading\"><strong>Firebase<\/strong><\/h3>\n\n\n\n<p>\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2a\u0e48\u0e07 push notification \u0e1c\u0e48\u0e32\u0e19 Firebase Cloud Messaging (FCM)<\/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:#D4D4D4;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>App__Firebase__ServerKey=&lt;SERVER_KEY>\nApp__Firebase__FcmPushUrl=https:\/\/fcm.googleapis.com\/fcm\/send<\/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 dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">App__Firebase__ServerKey<\/span><span style=\"color: #D4D4D4\">=&lt;<\/span><span style=\"color: #CE9178\">SERVER_KE<\/span><span style=\"color: #D4D4D4\">Y&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__Firebase__FcmPushUrl<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">https:\/\/fcm.googleapis.com\/fcm\/send<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Field<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>ServerKey<\/code><\/td><td>Server key \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a authenticate \u0e01\u0e31\u0e1a Firebase Cloud Messaging<\/td><\/tr><tr><td><code>FcmPushUrl<\/code><\/td><td>URL endpoint \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2a\u0e48\u0e07 push notification \u0e1c\u0e48\u0e32\u0e19 FCM<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<h3 class=\"wp-block-heading\"><strong>AsymmetricKey<\/strong><\/h3>\n\n\n\n<p>\u0e01\u0e33\u0e2b\u0e19\u0e14 RSA key pair \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e02\u0e49\u0e32\u0e23\u0e2b\u0e31\u0e2a\u0e41\u0e25\u0e30\u0e16\u0e2d\u0e14\u0e23\u0e2b\u0e31\u0e2a payload \u0e17\u0e35\u0e48\u0e23\u0e31\u0e1a\u0e21\u0e32\u0e08\u0e32\u0e01 client \u0e14\u0e39\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48&nbsp;<a href=\"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/atlasx-web-service-8\/features\/decrypt-payload\/\">Decrypt Payload<\/a><\/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:#D4D4D4;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>App__AsymmetricKey__HttpPayloadKey__PrivateKey=-----BEGIN RSA PRIVATE KEY-----...-----END RSA PRIVATE KEY-----\nApp__AsymmetricKey__HttpPayloadKey__PublicKey=-----BEGIN PUBLIC KEY-----...-----END PUBLIC KEY-----<\/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 dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">App__AsymmetricKey__HttpPayloadKey__PrivateKey<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">-----BEGIN<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">RSA<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">PRIVATE<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">KEY-----...-----END<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">RSA<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">PRIVATE<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">KEY-----<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">App__AsymmetricKey__HttpPayloadKey__PublicKey<\/span><span style=\"color: #D4D4D4\">=<\/span><span style=\"color: #CE9178\">-----BEGIN<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">PUBLIC<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">KEY-----...-----END<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">PUBLIC<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">KEY-----<\/span><\/span><\/code><\/pre><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0e01\u0e32\u0e23\u0e14\u0e36\u0e07\u0e04\u0e48\u0e32 Configuration<\/strong><\/h2>\n\n\n\n<p>\u0e04\u0e48\u0e32\u0e43\u0e19&nbsp;<code>.env<\/code>&nbsp;\u0e16\u0e39\u0e01 bind \u0e40\u0e02\u0e49\u0e32 ASP.NET Core configuration \u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e36\u0e07\u0e04\u0e48\u0e32\u0e44\u0e14\u0e49\u0e1c\u0e48\u0e32\u0e19&nbsp;<code>builder.Configuration<\/code>&nbsp;\u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49&nbsp;<code>:<\/code>&nbsp;\u0e41\u0e17\u0e19&nbsp;<code>__<\/code>&nbsp;\u0e43\u0e19\u0e01\u0e32\u0e23\u0e23\u0e30\u0e1a\u0e38 path<\/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:#D4D4D4;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>\/\/ \u0e14\u0e36\u0e07\u0e04\u0e48\u0e32\u0e40\u0e14\u0e35\u0e48\u0e22\u0e27\nvar provider = builder.Configuration.GetSection(\"DataSource:Provider\").Value;\n\n\/\/ \u0e14\u0e36\u0e07\u0e17\u0e31\u0e49\u0e07 section\nvar dataSource = builder.Configuration.GetSection(\"DataSource\").Get&lt;DataSourceConfig>();\n\n\/\/ \u0e14\u0e36\u0e07\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 App section\nvar corsPolicy = builder.Configuration.GetSection(\"App:CorsPolicy\").Get&lt;string[]>();<\/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 dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u0e14\u0e36\u0e07\u0e04\u0e48\u0e32\u0e40\u0e14\u0e35\u0e48\u0e22\u0e27<\/span><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">var<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">provider<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">builder<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">Configuration<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #DCDCAA\">GetSection<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&quot;DataSource:Provider&quot;<\/span><span style=\"color: #D4D4D4\">).<\/span><span style=\"color: #9CDCFE\">Value<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u0e14\u0e36\u0e07\u0e17\u0e31\u0e49\u0e07 section<\/span><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">var<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">dataSource<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">builder<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">Configuration<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #DCDCAA\">GetSection<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&quot;DataSource&quot;<\/span><span style=\"color: #D4D4D4\">).<\/span><span style=\"color: #DCDCAA\">Get<\/span><span style=\"color: #D4D4D4\">&lt;<\/span><span style=\"color: #4EC9B0\">DataSourceConfig<\/span><span style=\"color: #D4D4D4\">&gt;();<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u0e14\u0e36\u0e07\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 App section<\/span><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">var<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">corsPolicy<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">builder<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #9CDCFE\">Configuration<\/span><span style=\"color: #D4D4D4\">.<\/span><span style=\"color: #DCDCAA\">GetSection<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&quot;App:CorsPolicy&quot;<\/span><span style=\"color: #D4D4D4\">).<\/span><span style=\"color: #DCDCAA\">Get<\/span><span style=\"color: #D4D4D4\">&lt;<\/span><span style=\"color: #569CD6\">string<\/span><span style=\"color: #D4D4D4\">[]&gt;();<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e43\u0e19 .env<\/strong><\/td><td><strong>\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e43\u0e19 Configuration<\/strong><\/td><\/tr><tr><td><code>DataSource__Provider<\/code><\/td><td><code>DataSource:Provider<\/code><\/td><\/tr><tr><td><code>DataSource__Local__Provider<\/code><\/td><td><code>DataSource:Local:Provider<\/code><\/td><\/tr><tr><td><code>App__LDAP__Host<\/code><\/td><td><code>App:LDAP:Host<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"featured_media":0,"parent":1181,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-1184","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1184","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=1184"}],"version-history":[{"count":10,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1184\/revisions"}],"predecessor-version":[{"id":4218,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1184\/revisions\/4218"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/1181"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=1184"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=1184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}