---
# System prepended metadata

title: AWS　主服務　線路／域名配置說明
tags: [aws]

---



# AWS　主服務　線路／域名配置說明


## 服務類型／位置

### Authorization
> 主要使用於客戶端呼叫，提供創建會員、進入遊戲、撈單...等服務。

架構
* 類型 : API
* 環境 : AWS Fargate
* 位址 : AWS ALB [Internal](http://internal-VA-Authorization-Internal-LB-2008733689.ap-east-1.elb.amazonaws.com)


### DemoWebSite
> 主要使用於展示網頁呼叫，提供取得推薦遊戲、取得熱門遊戲、創建會員、進入遊戲...等服務。

架構
* 類型 : API
* 環境 : AWS Fargate
* 位址 : AWS ALB [Internal](http://internal-VA-DemoWebSite-Internal-LB-1767648357.ap-east-1.elb.amazonaws.com)


### GameClient
> 主要使用於進入遊戲後呼叫，提供取得令牌資訊、取得廣告資訊、切換遊戲...等服務。

架構
* 類型 : API
* 環境 : AWS Fargate
* 位址 : AWS ALB [Internal](http://internal-VA-GameClient-Internal-LB-1827992282.ap-east-1.elb.amazonaws.com)


### GameDataAccess
> 主要使用於遊戲服務器呼叫，提供取得將號、寫賽果、寫記錄...等服務。

架構
* 類型 : API
* 環境 : AWS Fargate
* 位址 : AWS ALB [Internal](http://internal-VA-GameDataAccess-Internal-LB-653222306.ap-east-1.elb.amazonaws.com)


### ManageBackground
> 主要使用於後台管理網頁呼叫，提供登入、場商列表、會員列表、注單列表、報表...等服務。

架構
* 類型 : API
* 環境 : AWS Fargate
* 位址 : AWS ALB [Internal](http://internal-VA-ManageBackground-Internal-LB-1802395996.ap-east-1.elb.amazonaws.com)

### GameAdapter
> 主要使用於遊戲伺服器溝通，提供踢人、後控...等服務。

架構
* 環境 : Windows Server (Internet Information Services)
* 位址 : EC2 IIS [Web Deploy](http://172.16.11.39:50080/)



## 域名配置


### victor-win.cc (Cloudflare 託管)
> 此域名由Cloudflare託管，設定Cloudflare將各子域名DNS到AnsonNet中國專線，透過專線連接AWS Nginx反向代理至內部 ALB 服務。

* DNS : [Cloudflare](https://www.cloudflare.com/zh-tw)
* Back-to-source : AWS Nginx

| Domain 			 | SubDomain 			  		  | CP   | Type	 							| FQDN														| Notes  		|
| ------------------ | ------------------------------ | ---- | -------------------------------- | -------------------------------------------------------	| ------------- |
| victor-win.cc 	 | api.victor-win.cc 		  	  | Http | <font color="Red">動態</font>	| [FQDN](https://api.victor-win.cc)							| 撈單API      	|
| victor-win.cc 	 | gameclient.victor-win.cc   	  | Http | <font color="Red">動態</font>	| [FQDN](https://gameclient.victor-win.cc)					| 前導頁-後端	|
| victor-win.cc 	 | h5game.victor-win.cc			  | Http | <font color="green">靜態</font>  | [FQDN](https://h5game.victor-win.cc)						| 前導頁-前端	|
| victor-win.cc 	 | demowebsite.victor-win.cc	  | Http | <font color="Red">動態</font>	| [FQDN](https://demowebsite.victor-win.cc)					| 展示站-後端	|
| victor-win.cc 	 | demo.victor-win.cc			  | Http | <font color="green">靜態</font>  | [FQDN](https://demo.victor-win.cc)						| 展示站-前端	|
| victor-win.cc 	 | ma.victor-win.cc				  | Http | <font color="Red">動態</font>	| [FQDN](https://ma.victor-win.cc)							| 管理後台-後端	|
| victor-win.cc 	 | manage.victor-win.cc			  | Http | <font color="green">靜態</font>  | [FQDN](https://manage.victor-win.cc)						| 管理後台-前端	|
| ----- | ----- 	 | ----- | ----- | ----- | ----- |
| victor-win.cc 	 | gs.victor-win.cc 		  	  | Wss  | <font color="Red">動態</font>	| [FQDN](https://gs.victor-win.cc)							| 遊戲伺服器	|
| ----- | ----- 	 | ----- | ----- | ----- | ----- |
| victor-win.cc 	 | cdn.victor-win.cc   			  | Http | <font color="green">靜態</font>  | [FQDN](https://cdn.victor-win.cc/lb/images/100k.jpg)		| CDN			|



### victor-win.vip (AnsonNet)
> 由甘地(Gandi)託管域名，將cdn二級域名透過CNAME到back-to-source取得的源IP後回源。

* DNS : [Gandi](https://admin.gandi.net/)
* Back-to-source : AWS Nginx (18.166.10.48)
* 設定
	* DIA : 115.167.44.195
	* CDN(cname) : jgl865.wave-5g.com

> CDN 設定
> cdn.victor-win.vip => jgl865.wave-5g.com.(cname) => cdn.va-game.net(back-to-source) => cdn.victor-win.vip


| Domain 			 | SubDomain 			  		  | CP   | FQDN														| Notes  		|
| ------------------ | ------------------------------ | ---- | -------------------------------------------------------	| ------------- |
| victor-win.vip 	 | back2source.victor-win.vip	  | Http | ~~FQDN~~														| 取得回源位址使用       	|
| ----- | -----	| ----- | ----- | ----- | 
| victor-win.vip 	 	 | cdn.victor-win.vip		  | Http | [FQDN](https://cdn.victor-win.vip:6699/lb/images/100k.jpg)	| CDN			|


### va-game.net (直連 AWS Instances)
> 由甘地(Gandi)託管域名，使用DNS將域名A類到AWS EC2服務，再透過IIS Proxy轉發到ALB中的內部服務。

:::info
當客戶反應異常，提供運維人員測試『源服務』是否正常時使用，有鎖白名單。
:::

* DNS : [Gandi](https://admin.gandi.net/)
* Back-to-source : AWS Instances


| Domain 			 | SubDomain 			  		  | CP   | Type	 							| FQDN														| Notes  		|
| ------------------ | ------------------------------ | ---- | -------------------------------- | -------------------------------------------------------	| ------------- |
| va-game.net 	 	 | api.va-game.net 		  	  	  | Http | <font color="Red">動態</font>	| [FQDN](https://api.va-game.net)							| 撈單API      	|
| va-game.net 	 	 | gameclient.va-game.net   	  | Http | <font color="Red">動態</font>	| [FQDN](https://gameclient.va-game.net)					| 前導頁-後端	|
| va-game.net 	 	 | h5game.va-game.net			  | Http | <font color="green">靜態</font>  | [FQDN](https://h5game.va-game.net)						| 前導頁-前端	|
| va-game.net 	 	 | demowebsite.va-game.net	      | Http | <font color="Red">動態</font>	| [FQDN](https://demowebsite.va-game.net)					| 展示站-後端	|
| va-game.net 	 	 | demo.va-game.net			      | Http | <font color="green">靜態</font>  | [FQDN](https://demo.va-game.net)							| 展示站-前端	|
| va-game.net 	 	 | ma.va-game.net				  | Http | <font color="Red">動態</font>	| [FQDN](https://ma.va-game.net)							| 管理後台-後端	|
| va-game.net 	 	 | manage.va-game.net			  | Http | <font color="green">靜態</font>  | [FQDN](https://manage.va-game.net)						| 管理後台-前端	|
| ----- | ----- 	 | ----- | ----- | ----- | ----- |
| va-game.net 	 	 | gs.va-game.net 		  	      | Wss  | <font color="Red">動態</font>	| [FQDN](https://gs.va-game.net)							| 遊戲伺服器	|
| ----- | ----- 	 | ----- | ----- | ----- | ----- |
| va-game.net 	 	 | cdn.va-game.net   			  | Http | <font color="green">靜態</font>  | [FQDN](https://cdn.va-game.net/lb/images/100k.jpg)		| CDN			|


### victor-win.network (透過 Nginx Proxy)
> 由甘地(Gandi)直接將域名A類到'新'AWS區網入口，透過入口Nginx反向代理至內部服務。

:::info
當客戶反應異常，提供運維人員測試『网宿動態加速專線』是否正常時使用。
:::

* DNS : [Gandi](https://admin.gandi.net/)
* Back-to-source : AWS Nginx

| Domain 			     |  SubDomain	   |CP   | Type	 							| FQDN														| Notes  		|
| ---------------------- |  -------------- |---- | -------------------------------- | -------------------------------------------------------	| ------------- |
| victor-win.network     |  api.		   |Http | <font color="Red">動態</font>	| [FQDN](https://api.victor-win.network)					| 撈單API      	|
| victor-win.network     |  gameclient.    |Http | <font color="Red">動態</font>	| [FQDN](https://gameclient.victor-win.network)				| 前導頁-後端	|
| victor-win.network     |  h5game.	       |Http | <font color="green">靜態</font>  | [FQDN](https://h5game.victor-win.network)					| 前導頁-前端	|
| victor-win.network     |  demowebsite.   |Http | <font color="Red">動態</font>	| [FQDN](https://demowebsite.victor-win.network)			| 展示站-後端	|
| victor-win.network     |  demo.		   | Http | <font color="green">靜態</font> | [FQDN](https://demo.victor-win.network)					| 展示站-前端	|
| victor-win.network     |  ma.		       |Http | <font color="Red">動態</font>	| [FQDN](https://ma.victor-win.network)						| 管理後台-後端	|
| victor-win.network     |  manage.	       |Http | <font color="green">靜態</font>  | [FQDN](https://manage.victor-win.network)					| 管理後台-前端	|
| ----- | ----- |  ----- | ----- | ----- | ----- |
| victor-win.network     |  gs.		       |Wss  | <font color="Red">動態</font>	| [FQDN](https://gs.victor-win.network)						| 遊戲伺服器	|
| ----- | ----- |  ----- | ----- | ----- | ----- |
| victor-win.network     |  cdn.		   |Http | <font color="green">靜態</font>  | [FQDN](https://cdn.victor-win.network/lb/images/100k.jpg)	| CDN			|



### Content Delivery Network (CDN)


#### 安迅
cdn.victor-win.vip => jgl865.wave-5g.com.(cname) => cdn.va-game.net(back-to-source) => cdn.victor-win.vip


#### 網宿
cdn.259anmo.com(443) => cdn.victor-win.network => nginx => 172.16.11.39:14103
cdn.15354088878.com(443) => cdn.victor-win.network => nginx => 172.16.11.39:14103

#### Cloudflare
cdn.victor-win.cc(443) => cloudflare(DNS) => nginx => 172.16.11.39:14103

#### Gandi
cdn.victor-win.network => Gandi(DNS) => nginx => 172.16.11.39:14103