Skip to content

Instantly share code, notes, and snippets.

@weavejester
Created December 18, 2016 20:47
Show Gist options
  • Save weavejester/fd442140507ba70be577ea578a202337 to your computer and use it in GitHub Desktop.
Save weavejester/fd442140507ba70be577ea578a202337 to your computer and use it in GitHub Desktop.
{:duct.logging/timbre
{:level :info
:appenders {:println #ref :duct.logging.timbre/println}}
:duct.logging.timbre/println
{:stream :auto}
:duct.server/jetty
{:port 3000
:handler #ref duct.bridge/handler}
:duct.core/handler
{:endpoints [#ref :foo.endpoint/example]
:middleware [#ref :duct.middleware/not-found
#ref :duct.middleware/webjars
#ref :duct.middleware/defaults
#ref :duct.middleware/route-aliases
#ref :duct.middleware/hide-errors]}
:duct.middleware/not-found
{:error-page #resource "foo/errors/404.html"}
:duct.middleware/hide-errors
{:error-page #resource "foo/errors/500.html"}
:duct.middleware/route-aliases
{"/" "/index.html"}
:duct.middleware/webjars {}
:duct.middleware/defaults
{:params {:urlencoded true
:keywordize true
:multipart true
:nested true}
:cookies true
:session {:flash true
:cookie-attrs {:http-only true}}
:security {:anti-forgery true
:xss-protection {:enable? true, :mode :block}
:frame-options :sameorigin
:content-type-options :nosniff}
:static {:resources "foo/public"}
:responses {:not-modified-responses true
:absolute-redirects true
:content-types true
:default-charset "utf-8"}}
:foo.endpoint/example {}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment