-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ad6111
commit c15fc7b
Showing
13 changed files
with
146 additions
and
494 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
{ | ||
"template": "https://github.com/Azure-Samples/Azure-Python-Standardization-Template-Generator", | ||
"commit": "c75367846861bc3563aefae0831a06d715b75286", | ||
"checkout": null, | ||
"context": { | ||
"cookiecutter": { | ||
"project_name": "Relecloud", | ||
"python_version": "3.12", | ||
"project_backend": "django", | ||
"db_resource": "postgres-flexible", | ||
"project_host": "aca", | ||
"web_port": "8000", | ||
"__repo_name": "Relecloud-django-postgres-flexible-aca", | ||
"__src_folder_name": "relecloud_django_postgres_flexible_aca", | ||
"__project_short_description": "Create a relecloud demo application with django and postgres-flexible", | ||
"_copy_without_render": [ | ||
".github/workflows/azure-dev.yml", | ||
".github/workflows/cruft.yml", | ||
".github/workflows/devcontainer-ci.yml", | ||
".github/workflows/format.yml" | ||
], | ||
"_extensions": [ | ||
"extensions.GetUrlForBackend" | ||
], | ||
"_jinja2_env_vars": { | ||
"lstrip_blocks": true, | ||
"trim_blocks": true | ||
}, | ||
"_template": "https://github.com/Azure-Samples/Azure-Python-Standardization-Template-Generator" | ||
} | ||
}, | ||
"directory": null | ||
} | ||
"template": "https://github.com/Azure-Samples/Azure-Python-Standardization-Template-Generator", | ||
"commit": "3300bfb387c4ce2cbd9ae2c48e77fc069f3d977e", | ||
"checkout": null, | ||
"context": { | ||
"cookiecutter": { | ||
"project_name": "Relecloud", | ||
"python_version": "3.12", | ||
"project_backend": "django", | ||
"db_resource": "postgres-flexible", | ||
"project_host": "aca", | ||
"web_port": "8000", | ||
"__repo_name": "Relecloud-django-postgres-flexible-aca", | ||
"__src_folder_name": "azure-django-postgres-flexible-aca", | ||
"__project_short_description": "Create a relecloud demo application with django and postgres-flexible", | ||
"_copy_without_render": [ | ||
".github/workflows/azure-dev.yml", | ||
".github/workflows/cruft.yml", | ||
".github/workflows/devcontainer-ci.yml", | ||
".github/workflows/format.yml" | ||
], | ||
"_extensions": [ | ||
"extensions.GetUrlForBackend" | ||
], | ||
"_jinja2_env_vars": { | ||
"lstrip_blocks": true, | ||
"trim_blocks": true | ||
}, | ||
"_template": "https://github.com/Azure-Samples/Azure-Python-Standardization-Template-Generator" | ||
} | ||
}, | ||
"directory": null | ||
} |
This file was deleted.
Oops, something went wrong.
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
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,101 @@ | ||
metadata description = 'Creates an Azure Frontdoor CDN profile in front of a storage domain.' | ||
|
||
param name string | ||
param origin string | ||
param tags object = {} | ||
param allowHttp bool = false | ||
param httpsRedirect bool = true | ||
param defaultRouteName string = 'default-route' | ||
param defaultOriginGroupName string = 'default-origin-group' | ||
param defaultOriginName string = 'default-origin' | ||
|
||
@allowed(['Enabled', 'Disabled']) | ||
param sessionAffinityState string = 'Disabled' | ||
|
||
var supportedProtocols = allowHttp ? [ | ||
'Http' | ||
'Https' | ||
] : [ | ||
'Https' | ||
] | ||
|
||
@allowed(['Standard_AzureFrontDoor', 'Premium_AzureFrontDoor']) | ||
param sku string = 'Standard_AzureFrontDoor' | ||
|
||
param originResponseTimeoutSeconds int = 60 | ||
|
||
resource cdnProfile 'Microsoft.Cdn/profiles@2023-07-01-preview' = { | ||
name: name | ||
location: 'Global' | ||
tags: tags | ||
sku: { | ||
name: sku | ||
} | ||
properties: { | ||
originResponseTimeoutSeconds: originResponseTimeoutSeconds | ||
} | ||
} | ||
|
||
resource originGroups 'Microsoft.Cdn/profiles/origingroups@2022-11-01-preview' = { | ||
name: defaultOriginGroupName | ||
parent: cdnProfile | ||
properties: { | ||
loadBalancingSettings: { | ||
sampleSize: 4 | ||
successfulSamplesRequired: 3 | ||
additionalLatencyInMilliseconds: 50 | ||
} | ||
healthProbeSettings: { | ||
probePath: '/' | ||
probeRequestType: 'HEAD' | ||
probeProtocol: allowHttp ? 'Http' : 'Https' | ||
probeIntervalInSeconds: 100 | ||
} | ||
sessionAffinityState: sessionAffinityState | ||
} | ||
|
||
resource origins 'origins@2022-11-01-preview' = { | ||
name: defaultOriginName | ||
properties: { | ||
hostName: origin | ||
httpPort: 80 | ||
httpsPort: 443 | ||
originHostHeader: origin | ||
priority: 1 | ||
weight: 1000 | ||
enabledState: 'Enabled' | ||
enforceCertificateNameCheck: true | ||
} | ||
} | ||
} | ||
|
||
resource afdEndpoints 'Microsoft.Cdn/profiles/afdEndpoints@2023-05-01' = { | ||
parent: cdnProfile | ||
name: name | ||
location: 'Global' | ||
properties: { | ||
enabledState: 'Enabled' | ||
} | ||
|
||
resource routes 'routes@2022-11-01-preview' = { | ||
name: defaultRouteName | ||
properties: { | ||
customDomains: [] | ||
originGroup: { | ||
id: originGroups.id | ||
} | ||
ruleSets: [] | ||
supportedProtocols: supportedProtocols | ||
patternsToMatch: [ | ||
'/*' | ||
] | ||
forwardingProtocol: 'MatchRequest' | ||
linkToDefaultDomain: 'Enabled' | ||
httpsRedirect: httpsRedirect ? 'Enabled' : 'Disabled' | ||
enabledState: 'Enabled' | ||
} | ||
} | ||
} | ||
|
||
output cdnProfileId string = cdnProfile.id | ||
output endpointHostname string = afdEndpoints.properties.hostName |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.