Skip to content

Instantly share code, notes, and snippets.

@gokhanakgul
Created January 14, 2014 16:55
Show Gist options
  • Save gokhanakgul/b57317ad4c90522dbe71 to your computer and use it in GitHub Desktop.
Save gokhanakgul/b57317ad4c90522dbe71 to your computer and use it in GitHub Desktop.
Grails Tomcat Plugin configuration
eventConfigureTomcat = { tomcat ->
tomcat.connector.setAttribute("compression", "on")
tomcat.connector.setAttribute("compressableMimeType", "text/html,text/xml,text/plain,application/javascript")
tomcat.addUser("testUser", "testpassword")
tomcat.addRole("testUser", "monitoring")
println "Loading users"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment