<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <handlers>
      <add name="httpPlatformHandler"
           path="*"
           verb="*"
           modules="httpPlatformHandler"
           resourceType="Unspecified"
           requireAccess="Script" />
    </handlers>
    <httpPlatform processPath="${PROCESS_PATH}"
                  arguments="-m waitress --listen=127.0.0.1:%HTTP_PLATFORM_PORT% ${ENTRYPOINT}"
                  stdoutLogEnabled="true"
                  stdoutLogFile=".\logs\stdout_${SLUG}.log"
                  startupTimeLimit="120"
                  startupRetryCount="3"
                  processesPerApplication="1">
      <environmentVariables>
        <environmentVariable name="PYTHONPATH" value="." />
        <environmentVariable name="SCRIPT_NAME" value="${SCRIPT_NAME}" />
      </environmentVariables>
    </httpPlatform>
  </system.webServer>
</configuration>
