Skip to content

Commit

Permalink
Update linux web app startup command and cors
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinbuss committed Aug 23, 2024
1 parent aca0053 commit bff1c21
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion code/infra/webapplinux.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,17 @@ resource "azurerm_linux_web_app" "linux_web_app" {
always_on = true
api_definition_url = null
api_management_api_id = null
app_command_line = null
app_command_line = "gunicorn --bind 0.0.0.0 --worker-class aiohttp.worker.GunicornWebWorker --timeout 600 app:APP"
application_stack {
python_version = "3.11"
}
cors {
allowed_origins = [
"https://botservice.hosting.portal.azure.net",
"https://hosting.onecloud.azure-test.net",
]
support_credentials = true
}
container_registry_managed_identity_client_id = null
container_registry_use_managed_identity = null
ftps_state = "Disabled"
Expand Down

0 comments on commit bff1c21

Please sign in to comment.