Skip to content

How to work with multiple configuration files per microservice? #1859

Closed Answered by raman-m
sachinvaid1604 asked this question in Q&A
Discussion options

You must be logged in to vote

You described exactly the same user scenario of #296 for merging multiple files of the same environment.

You have to read this Ocelot doc: Merging Configuration Files

So, you need this setup:

            .ConfigureAppConfiguration((hostingContext, config) =>
            {
                config
                    // ...
                    .AddOcelot(hostingContext.HostingEnvironment)
                    .AddEnvironmentVariables();
            })

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@sachinvaid1604
Comment options

@raman-m
Comment options

Comment options

You must be logged in to vote
3 replies
@raman-m
Comment options

@sachinvaid1604
Comment options

@sachinvaid1604
Comment options

Answer selected by raman-m
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;) Configuration Ocelot feature: Configuration
2 participants
Converted from issue

This discussion was converted from issue #1858 on December 19, 2023 16:14.