mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Add Deploy To Azure button and ARM template
This commit is contained in:
@@ -11,7 +11,7 @@ Nightscout Web Monitor (a.k.a. cgm-remote-monitor)
|
||||
[![Stories in Ready][ready-img]][waffle]
|
||||
[![Stories in Progress][progress-img]][waffle]
|
||||
|
||||
[![Deploy to Heroku][heroku-img]][heroku-url]
|
||||
[](https://azuredeploy.net/) [![Deploy to Heroku][heroku-img]][heroku-url]
|
||||
|
||||
This acts as a web-based CGM (Continuous Glucose Monitor) to allow
|
||||
multiple caregivers to remotely view a patient's glucose data in
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
{
|
||||
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"siteName": {
|
||||
"type": "string"
|
||||
},
|
||||
"hostingPlanName": {
|
||||
"type": "string"
|
||||
},
|
||||
"siteLocation": {
|
||||
"type": "string"
|
||||
},
|
||||
"sku": {
|
||||
"type": "string",
|
||||
"allowedValues": [
|
||||
"Free",
|
||||
"Shared",
|
||||
"Basic",
|
||||
"Standard"
|
||||
],
|
||||
"defaultValue": "Free"
|
||||
},
|
||||
"workerSize": {
|
||||
"type": "string",
|
||||
"allowedValues": [
|
||||
"0",
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
"defaultValue": "0"
|
||||
},
|
||||
"repoUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"branch": {
|
||||
"type": "string"
|
||||
},
|
||||
"mongoConnection": {
|
||||
"type": "string"
|
||||
},
|
||||
"displayUnits": {
|
||||
"type": "string",
|
||||
"allowedValues": [
|
||||
"mg/dl",
|
||||
"mmol"
|
||||
],
|
||||
"defaultValue": "mg/dl"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-04-01",
|
||||
"name": "[parameters('hostingPlanName')]",
|
||||
"type": "Microsoft.Web/serverFarms",
|
||||
"location": "[parameters('siteLocation')]",
|
||||
"properties": {
|
||||
"sku": "[parameters('sku')]",
|
||||
"workerSize": "[parameters('workerSize')]",
|
||||
"numberOfWorkers": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-08-01",
|
||||
"name": "[parameters('siteName')]",
|
||||
"type": "Microsoft.Web/Sites",
|
||||
"location": "[parameters('siteLocation')]",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]"
|
||||
],
|
||||
"tags": {
|
||||
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty"
|
||||
},
|
||||
"properties": {
|
||||
"serverFarmId": "[parameters('hostingPlanName')]",
|
||||
"siteConfig": {
|
||||
"appSettings": [
|
||||
{
|
||||
"name": "MONGO_CONNECTION",
|
||||
"value": "[parameters('mongoConnection')]"
|
||||
},
|
||||
{
|
||||
"name": "DISPLAY_UNITS",
|
||||
"value": "[parameters('displayUnits')]"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2015-08-01",
|
||||
"name": "web",
|
||||
"type": "sourcecontrols",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]"
|
||||
],
|
||||
"properties": {
|
||||
"RepoUrl": "[parameters('repoUrl')]",
|
||||
"branch": "[parameters('branch')]",
|
||||
"IsManualIntegration": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user