Skip to content

Commit

Permalink
Merge branch 'jmservera/certificate4backend' into jmservera/condition…
Browse files Browse the repository at this point in the history
…aldeployment
  • Loading branch information
jmservera committed Aug 8, 2024
2 parents 51d9795 + 08091c8 commit 540e9c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocpp-server/infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ param dnsZoneRG string
param pubSubHubName string = 'OcppService'
@description('If you want to use a NAT Gateway for the outbound access of the vNet')
param useNATGateway bool = false
@description('Set it to false if you don\'t want to use the custom certificate and domain name in the internal web app. Useful for self-signed certificates.')
param useCertificateInWebApp bool = true

var pubsubHostName = '${pubsubARecordName}.${customDnsZoneName}'
var webHostName = '${webARecordName}.${customDnsZoneName}'
Expand Down Expand Up @@ -95,7 +97,7 @@ module webApp './modules/webapp.bicep' = {
// Assigns the custom web domain to the web app, this ensures
// that the cookies are set with the custom domain and do not
// have any issue with the Application Gateway cookie based affinity
module customDomain 'modules/customWebName.bicep' = if (customDnsZoneName != '') {
module customDomain 'modules/customWebName.bicep' = if (customDnsZoneName != '' && useCertificateInWebApp) {
name: '${deployment().name}-customDomain'
params: {
dnszoneName: customDnsZoneName
Expand Down

0 comments on commit 540e9c0

Please sign in to comment.