Browse Source

Moved reverse proxy configuration to yarp file and environment file

pull/106/head
Galip Tolga Erdem 5 years ago
parent
commit
6e17430f9b
  1. 100
      gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json
  2. 100
      gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.json
  3. 101
      gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json
  4. 86
      gateways/web/src/EShopOnAbp.WebGateway/appsettings.Docker.json

100
gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.Docker.json

@ -0,0 +1,100 @@
{
"ReverseProxy": {
"Routes": {
"Account Service": {
"ClusterId": "accountCluster",
"Match": {
"Path": "/api/account/{**everything}"
}
},
"Administration Service": {
"ClusterId": "administrationCluster",
"Match": {
"Path": "/api/abp/{**everything}"
}
},
"Catalog Service": {
"ClusterId": "catalogCluster",
"Match": {
"Path": "/api/catalog/{**everything}"
}
},
"Basket Service": {
"ClusterId": "basketCluster",
"Match": {
"Path": "/api/basket/{**everything}"
}
},
"Ordering Service": {
"ClusterId": "orderingCluster",
"Match": {
"Path": "/api/ordering/{**everything}"
}
},
"Payment Service": {
"ClusterId": "paymentCluster",
"Match": {
"Path": "/api/payment/{**everything}"
}
},
"product-picture-route": {
"ClusterId": "productPictureCluster",
"Match": {
"Path": "/product-images/{**everything}",
"Methods" : [ "GET" ]
}
}
},
"Clusters": {
"accountCluster": {
"Destinations": {
"destination1": {
"Address": "http://app-authserver"
}
}
},
"administrationCluster": {
"Destinations": {
"destination1": {
"Address": "http://administration-service"
}
}
},
"catalogCluster": {
"Destinations": {
"destination1": {
"Address": "http://catalog-service"
}
}
},
"basketCluster": {
"Destinations": {
"destination1": {
"Address": "http://basket-service"
}
}
},
"orderingCluster": {
"Destinations": {
"destination1": {
"Address": "http://ordering-service"
}
}
},
"paymentCluster": {
"Destinations": {
"destination1": {
"Address": "http://payment-service"
}
}
},
"productPictureCluster": {
"Destinations": {
"destination1": {
"Address": "http://catalog-service"
}
}
}
}
}
}

100
gateways/web-public/src/EShopOnAbp.WebPublicGateway/appsettings.json

@ -22,103 +22,5 @@
},
"ElasticSearch": {
"Url": "http://localhost:9200"
},
"ReverseProxy": {
"Routes": {
"Account Service": {
"ClusterId": "account_cluster",
"Match": {
"Path": "/api/account/{**everything}"
}
},
"Administration Service": {
"ClusterId": "administration_cluster",
"Match": {
"Path": "/api/abp/{**everything}"
}
},
"Catalog Service": {
"ClusterId": "catalog_cluster",
"Match": {
"Path": "/api/catalog/{**everything}"
}
},
"Basket Service": {
"ClusterId": "basket_cluster",
"Match": {
"Path": "/api/basket/{**everything}"
}
},
"Ordering Service": {
"ClusterId": "ordering_cluster",
"Match": {
"Path": "/api/ordering/{**everything}"
}
},
"Payment Service": {
"ClusterId": "payment_cluster",
"Match": {
"Path": "/api/payment/{**everything}"
}
},
"product-picture-route": {
"ClusterId": "product_picture_cluster",
"Match": {
"Path": "/product-images/{**everything}",
"Methods" : [ "GET" ]
}
}
},
"Clusters": {
"account-cluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44330"
}
}
},
"administration_cluster": {
"Destinations": {
"destination1": {
"Address": "http://localhost:44353"
}
}
},
"catalog_cluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44354"
}
}
},
"product_picture_cluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44354"
}
}
},
"basket_cluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44355"
}
}
},
"ordering_cluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44356"
}
}
},
"payment_cluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44357"
}
}
}
}
}
}
}

101
gateways/web-public/src/EShopOnAbp.WebPublicGateway/yarp.json

@ -1,3 +1,100 @@
{
}
"ReverseProxy": {
"Routes": {
"Account Service": {
"ClusterId": "accountCluster",
"Match": {
"Path": "/api/account/{**everything}"
}
},
"Administration Service": {
"ClusterId": "administrationCluster",
"Match": {
"Path": "/api/abp/{**everything}"
}
},
"Catalog Service": {
"ClusterId": "catalogCluster",
"Match": {
"Path": "/api/catalog/{**everything}"
}
},
"Basket Service": {
"ClusterId": "basketCluster",
"Match": {
"Path": "/api/basket/{**everything}"
}
},
"Ordering Service": {
"ClusterId": "orderingCluster",
"Match": {
"Path": "/api/ordering/{**everything}"
}
},
"Payment Service": {
"ClusterId": "paymentCluster",
"Match": {
"Path": "/api/payment/{**everything}"
}
},
"product-picture-route": {
"ClusterId": "productPictureCluster",
"Match": {
"Path": "/product-images/{**everything}",
"Methods" : [ "GET" ]
}
}
},
"Clusters": {
"accountCluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44330"
}
}
},
"administrationCluster": {
"Destinations": {
"destination1": {
"Address": "http://localhost:44353"
}
}
},
"catalogCluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44354"
}
}
},
"basketCluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44355"
}
}
},
"orderingCluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44356"
}
}
},
"paymentCluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44357"
}
}
},
"productPictureCluster": {
"Destinations": {
"destination1": {
"Address": "https://localhost:44354"
}
}
}
}
}
}

86
gateways/web/src/EShopOnAbp.WebGateway/appsettings.Docker.json

@ -0,0 +1,86 @@
{
"ReverseProxy": {
"Routes": {
"Account Service": {
"ClusterId": "accountCluster",
"Match": {
"Path": "/api/account/{**everything}"
}
},
"Identity Service": {
"ClusterId": "identityCluster",
"Match": {
"Path": "/api/identity/{**everything}"
}
},
"Administration Service": {
"ClusterId": "administrationCluster",
"Match": {
"Path": "/api/abp/{**everything}"
}
},
"feature-management-route": {
"ClusterId": "featureManagementCluster",
"Match": {
"Path": "/api/feature-management/{**everything}"
}
},
"permission-management-route": {
"ClusterId": "permissionManagementCluster",
"Match": {
"Path": "/api/permission-management/{**everything}"
}
},
"setting-management-route": {
"ClusterId": "settingManagementCluster",
"Match": {
"Path": "/api/setting-management/{**everything}"
}
}
},
"Clusters": {
"accountCluster": {
"Destinations": {
"destination1": {
"Address": "http://app-authserver"
}
}
},
"identityCluster": {
"Destinations": {
"destination1": {
"Address": "http://identity-service"
}
}
},
"administrationCluster": {
"Destinations": {
"destination1": {
"Address": "http://administration-service"
}
}
},
"featureManagementCluster": {
"Destinations": {
"destination1": {
"Address": "http://administration-service"
}
}
},
"permissionManagementCluster": {
"Destinations": {
"destination1": {
"Address": "http://administration-service"
}
}
},
"settingManagementCluster": {
"Destinations": {
"destination1": {
"Address": "http://administration-service"
}
}
}
}
}
}
Loading…
Cancel
Save