Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added AzureWebJobsFeatureFlags setting to re-enable Proxies on v4 Azure Function App #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
"properties": {
"AzureWebJobsStorage": "[concat('DefaultEndpointsProtocol=https;AccountName=',variables('storageAccountName'),';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2015-05-01-preview').key1,';')]",
"AzureWebJobsDashboard": "[concat('DefaultEndpointsProtocol=https;AccountName=',variables('storageAccountName'),';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2015-05-01-preview').key1,';')]",
"AzureWebJobsFeatureFlags": "EnableProxies",
"FUNCTIONS_EXTENSION_VERSION": "latest",
"HOST_NAME": "[concat('http://', parameters('name'), '.', resourceGroup().location, '.azurecontainer.io')]"
}
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Requestbin On Azure Container Instances

<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.github.com%2Fsjkp%2Frequestbininazure%2Fmaster%2Fazuredeploy.json" target="_blank"><img src="http://azuredeploy.net/deploybutton.png"/></a>
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.github.com%2Fsjkp%2Frequestbininazure%2Fmaster%2Fazuredeploy.json" target="_blank">![Deploy to Azure](https://aka.ms/deploytoazurebutton)</a>

This repository contains a self-hosted version of requestbin, that run on Azure Container Instances.

Expand All @@ -22,5 +22,5 @@ In other words don't let it run 24x7 if you want to do that you are better off i
## Accessing the site
After the template deployment is complete you can access requestbin site using the following urls:

* If you need https, you have to use `https://<name-specified-during-deployment>.azurewebsites.net`
* If you need https, you have to use `https://<name-specified-during-deployment>.azurewebsites.net`. However, this will need some additional setup before it will work if you're using version `~4` of Azure Functions, as the proxies feature has been disabled. In order to re-enable it, on the Azure Portal, make sure the app setting `AzureWebJobsFeatureFlags` has the value `EnableProxies`. Although this re-enables the proxies feature, the `Proxies` menu item will remain grayed-out. See [Re-enable proxies in Functions v4.x](https://learn.microsoft.com/en-us/azure/azure-functions/legacy-proxies#re-enable-proxies-in-functions-v4x) for more information. For convenience, this app setting is included in the ARM template.
* You can also access it using the ACI domain at `http://<name-specified-during-deployment>.<regionname-of-resourcegroup>.azurecontainer.io` where `<regionname-of-resourcegroup>` e.g. could be `westeurope` if you created the resource group in that region. Note this URL doesn't support https, as that is yet to come for ACI, which is why I included the azure function reverse proxy in the template, as you most likely need https.