This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ReRoutes": [ | |
| { | |
| "DownstreamPathTemplate": "/api/{version}/{everything}", | |
| "DownstreamScheme": "http", | |
| "DownstreamHostAndPorts": [ | |
| { | |
| "Host": "catalog.api", | |
| "Port": 80 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "DownstreamPathTemplate": "/api/{version}/{everything}", | |
| "DownstreamScheme": "http", | |
| "DownstreamHostAndPorts": [ | |
| { | |
| "Host": "basket.api", | |
| "Port": 80 | |
| } | |
| ], | |
| "UpstreamPathTemplate": "/api/{version}/b/{everything}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mobileshoppingapigw: | |
| image: eshop/ocelotapigw:${TAG:-latest} | |
| build: | |
| context: . | |
| dockerfile: src/ApiGateways/ApiGw-Base/Dockerfile | |
| mobilemarketingapigw: | |
| image: eshop/ocelotapigw:${TAG:-latest} | |
| build: | |
| context: . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mobileshoppingapigw: | |
| environment: | |
| - ASPNETCORE_ENVIRONMENT=Development | |
| - IdentityUrl=http://identity.api | |
| ports: | |
| - "5200:80" | |
| volumes: | |
| - ./src/ApiGateways/Mobile.Bff.Shopping/apigw:/app/configuration | |
| mobilemarketingapigw: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "DownstreamPathTemplate": "/api/{version}/{everything}", | |
| "DownstreamScheme": "http", | |
| "DownstreamHostAndPorts": [ | |
| { | |
| "Host": "basket.api", | |
| "Port": 80 | |
| } | |
| ], | |
| "UpstreamPathTemplate": "/api/{version}/b/{everything}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // prevent from mapping "sub" claim to nameidentifier. | |
| JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear(); | |
| var identityUrl = Configuration.GetValue<string>("IdentityUrl"); | |
| services.AddAuthentication(options => | |
| { | |
| options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; | |
| options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| catalog.api: | |
| environment: | |
| - ASPNETCORE_ENVIRONMENT=Development | |
| - ASPNETCORE_URLS=http://0.0.0.0:80 | |
| - ConnectionString=YOUR_VALUE | |
| - ... Other Environment Variables | |
| ports: | |
| - "5101:80" # Important: In a production environment you should remove the external port (5101) kept here for microservice debugging purposes. | |
| # The API Gateway redirects and access through the internal port (80). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var onnxPath = GetOutputPath(subDir, "SaveModelToOnnxTest.onnx"); | |
| var onnxAsJsonPath = GetOutputPath(subDir, "SaveModelToOnnxTest.json"); | |
| OnnxConverter converter = new OnnxConverter() | |
| { | |
| InputsToDrop = new[] { "Label" }, | |
| OutputsToDrop = new[] { "Label", "Features" }, | |
| Onnx = onnxPath, | |
| Json = onnxAsJsonPath, | |
| Domain = "com.mydomain" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline.Add(new FieldAwareFactorizationMachineBinaryClassifier(){ LearningRate = 0.5f, Iter=2 }); |