-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web-api): add production config (#1018)
<!--- Provide a general summary of your changes in the Title above --> ## Description Added missing configuration files for production environment. <!--- Describe your changes in detail --> ## Related Issue(s) - #845 ## Verification - [ ] **Your** code builds clean without any errors or warnings - [ ] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable)
- Loading branch information
Showing
2 changed files
with
138 additions
and
0 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
src/Digdir.Domain.Dialogporten.GraphQL/appsettings.prod.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
} | ||
}, | ||
"Infrastructure": { | ||
"Redis": { | ||
"Enabled": true, | ||
"ConnectionString": "TODO: Add to local secrets" | ||
}, | ||
"DialogDbConnectionString": "TODO: Add to local secrets", | ||
// Settings from appsettings.json, environment variables or other configuration providers. | ||
// The first three are always mandatory for all client definitions types | ||
"Maskinporten": { | ||
// 1. Valid values are test and prod | ||
"Environment": "prod", | ||
// 2. Client Id/integration as configured in Maskinporten | ||
"ClientId": "TODO: Add to local secrets", | ||
// 3. Scope(s) requested, space seperated. Must be provisioned on supplied client id. | ||
"Scope": "altinn:events.publish altinn:events.publish.admin altinn:register/partylookup.admin altinn:authorization/authorize.admin altinn:accessmanagement/authorizedparties.admin", | ||
// -------------------------- | ||
// Any additional settings are specific for the selected client definition type. | ||
// See below for examples using other types. | ||
"EncodedJwk": "TODO: Add to local secrets" | ||
}, | ||
"Altinn": { | ||
"BaseUri": "https://platform.altinn.no/", | ||
"EventsBaseUri": "Secret webhook sink URL in source key vault", | ||
"SubscriptionKey": "TODO: Add to local secrets" | ||
} | ||
}, | ||
"Application": { | ||
"Dialogporten": { | ||
"BaseUri": "https://platform.altinn.no/dialogporten", | ||
"Ed25519KeyPairs": { | ||
"Primary": { | ||
"Kid": "TODO: Add to local secrets", | ||
"PrivateComponent": "TODO: Add to local secrets", | ||
"PublicComponent": "TODO: Add to local secrets" | ||
}, | ||
"Secondary": { | ||
"Kid": "TODO: Add to local secrets", | ||
"PrivateComponent": "TODO: Add to local secrets", | ||
"PublicComponent": "TODO: Add to local secrets" | ||
} | ||
} | ||
} | ||
}, | ||
"GraphQl": { | ||
"Authentication": { | ||
"JwtBearerTokenSchemas": [ | ||
{ | ||
"Name": "Maskinporten", | ||
"WellKnown": "https://maskinporten.no/.well-known/oauth-authorization-server/" | ||
}, | ||
{ | ||
"Name": "Altinn", | ||
"WellKnown": "https://platform.altinn.no/authentication/api/v1/openid/.well-known/openid-configuration" | ||
}, | ||
{ | ||
"Name": "Idporten", | ||
"WellKnown": "https://idporten.no/.well-known/openid-configuration" | ||
} | ||
] | ||
} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
src/Digdir.Domain.Dialogporten.WebApi/appsettings.prod.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft.AspNetCore": "Warning" | ||
} | ||
}, | ||
"Infrastructure": { | ||
"Redis": { | ||
"Enabled": true, | ||
"ConnectionString": "TODO: Add to local secrets" | ||
}, | ||
"DialogDbConnectionString": "TODO: Add to local secrets", | ||
// Settings from appsettings.json, environment variables or other configuration providers. | ||
// The first three are always mandatory for all client definitions types | ||
"Maskinporten": { | ||
// 1. Valid values are test and prod | ||
"Environment": "prod", | ||
// 2. Client Id/integration as configured in Maskinporten | ||
"ClientId": "TODO: Add to local secrets", | ||
// 3. Scope(s) requested, space seperated. Must be provisioned on supplied client id. | ||
"Scope": "altinn:events.publish altinn:events.publish.admin altinn:register/partylookup.admin altinn:authorization/authorize.admin altinn:accessmanagement/authorizedparties.admin", | ||
// -------------------------- | ||
// Any additional settings are specific for the selected client definition type. | ||
// See below for examples using other types. | ||
"EncodedJwk": "TODO: Add to local secrets" | ||
}, | ||
"Altinn": { | ||
"BaseUri": "https://platform.altinn.no/", | ||
"EventsBaseUri": "https://platform.altinn.no/", | ||
"SubscriptionKey": "TODO: Add to local secrets" | ||
} | ||
}, | ||
"Application": { | ||
"Dialogporten": { | ||
"BaseUri": "https://platform.altinn.no/dialogporten", | ||
"Ed25519KeyPairs": { | ||
"Primary": { | ||
"Kid": "TODO: Add to local secrets", | ||
"PrivateComponent": "TODO: Add to local secrets", | ||
"PublicComponent": "TODO: Add to local secrets" | ||
}, | ||
"Secondary": { | ||
"Kid": "TODO: Add to local secrets", | ||
"PrivateComponent": "TODO: Add to local secrets", | ||
"PublicComponent": "TODO: Add to local secrets" | ||
} | ||
} | ||
} | ||
}, | ||
"WebApi": { | ||
"Authentication": { | ||
"JwtBearerTokenSchemas": [ | ||
{ | ||
"Name": "Maskinporten", | ||
"WellKnown": "https://maskinporten.no/.well-known/oauth-authorization-server/" | ||
}, | ||
{ | ||
"Name": "Altinn", | ||
"WellKnown": "https://platform.altinn.no/authentication/api/v1/openid/.well-known/openid-configuration" | ||
}, | ||
{ | ||
"Name": "Idporten", | ||
"WellKnown": "https://idporten.no/.well-known/openid-configuration" | ||
} | ||
] | ||
} | ||
} | ||
} |