Skip to content

Instantly share code, notes, and snippets.

@viblo
Last active June 27, 2018 15:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viblo/76a5969c84f59470233ec2b618dd5c8f to your computer and use it in GitHub Desktop.
Save viblo/76a5969c84f59470233ec2b618dd5c8f to your computer and use it in GitHub Desktop.
Metabase config for Azure web app
set MB_JETTY_PORT=%MB_JETTY_PORT: =%
"%JAVA_HOME%\bin\java.exe" -Djava.net.preferIPv4Stack=true -jar ./metabase.jar
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" />
</handlers>
<!-- set stdoutLogEnabled to true to get log files with useful info from metabase -->
<httpPlatform processPath="%HOME%\site\wwwroot\run.bat"
stdoutLogEnabled="false"
startupTimeLimit="120"
startupRetryCount="3">
<environmentVariables>
<environmentVariable name="MB_JETTY_PORT" value="%HTTP_PLATFORM_PORT%" />
</environmentVariables>
</httpPlatform>
</system.webServer>
</configuration>
@redbeardcr
Copy link

hi, how is this used? I'm trying to set up metabase on azure. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment