mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 22:50:49 +08:00 
			
		
		
		
	#296 renamed configuration.json to ocelot.json in preparation
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
			
		||||
    <TargetFramework>netcoreapp2.0</TargetFramework>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <None Update="configuration.json;appsettings.json">
 | 
			
		||||
    <None Update="ocelot.json;appsettings.json">
 | 
			
		||||
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
 | 
			
		||||
    </None>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 
 | 
			
		||||
@@ -106,7 +106,7 @@ namespace OcelotGraphQL
 | 
			
		||||
                        .SetBasePath(hostingContext.HostingEnvironment.ContentRootPath)
 | 
			
		||||
                        .AddJsonFile("appsettings.json", true, true)
 | 
			
		||||
                        .AddJsonFile($"appsettings.{hostingContext.HostingEnvironment.EnvironmentName}.json", true, true)
 | 
			
		||||
                        .AddJsonFile("configuration.json")
 | 
			
		||||
                        .AddJsonFile("ocelot.json")
 | 
			
		||||
                        .AddEnvironmentVariables();
 | 
			
		||||
                })
 | 
			
		||||
                .ConfigureServices(s => {
 | 
			
		||||
 
 | 
			
		||||
@@ -47,7 +47,7 @@ RESPONSE
 | 
			
		||||
 | 
			
		||||
## Notes
 | 
			
		||||
 | 
			
		||||
Please note this project never goes out to another service, it just gets the data for GraphQL in memory. You would need to add the details of your GraphQL server in configuration.json e.g.
 | 
			
		||||
Please note this project never goes out to another service, it just gets the data for GraphQL in memory. You would need to add the details of your GraphQL server in ocelot.json e.g.
 | 
			
		||||
 | 
			
		||||
```json
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								samples/OcelotServiceFabric/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								samples/OcelotServiceFabric/.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -13,7 +13,7 @@
 | 
			
		||||
# Service fabric
 | 
			
		||||
OcelotApplicationApiGatewayPkg/Code
 | 
			
		||||
OcelotApplication/OcelotApplicationApiGatewayPkg/Code/appsettings.json
 | 
			
		||||
OcelotApplication/OcelotApplicationApiGatewayPkg/Code/configuration.json
 | 
			
		||||
OcelotApplication/OcelotApplicationApiGatewayPkg/Code/ocelot.json
 | 
			
		||||
OcelotApplication/OcelotApplicationApiGatewayPkg/Code/runtimes/
 | 
			
		||||
OcelotApplicationServicePkg/Code
 | 
			
		||||
OcelotApplication/OcelotApplicationApiGatewayPkg/Code/web.config
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@
 | 
			
		||||
    <PackageId>OcelotApplicationApiGateway</PackageId>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
    <ItemGroup>
 | 
			
		||||
    <None Update="configuration.json;appsettings.json;">
 | 
			
		||||
    <None Update="ocelot.json;appsettings.json;">
 | 
			
		||||
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
 | 
			
		||||
    </None>
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
 
 | 
			
		||||
@@ -67,7 +67,7 @@ namespace OcelotApplicationApiGateway
 | 
			
		||||
                        .SetBasePath(hostingContext.HostingEnvironment.ContentRootPath)
 | 
			
		||||
                        .AddJsonFile("appsettings.json", true, true)
 | 
			
		||||
                        .AddJsonFile($"appsettings.{hostingContext.HostingEnvironment.EnvironmentName}.json", true, true)
 | 
			
		||||
                        .AddJsonFile("configuration.json")
 | 
			
		||||
                        .AddJsonFile("ocelot.json")
 | 
			
		||||
                        .AddEnvironmentVariables();
 | 
			
		||||
                })
 | 
			
		||||
               .ConfigureLogging((hostingContext, logging) =>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user