mirror of
https://github.com/journeyman-cc/smeagol.git
synced 2026-04-12 18:05:06 +00:00
Prefer content-dir files over classpath (like /content/stylesheet.css)
This commit is contained in:
parent
1136e792d4
commit
3542ac9146
2 changed files with 2 additions and 1 deletions
|
|
@ -97,6 +97,7 @@
|
||||||
[xss-protection?]
|
[xss-protection?]
|
||||||
(-> site-defaults
|
(-> site-defaults
|
||||||
(update-in [:session] merge session-defaults)
|
(update-in [:session] merge session-defaults)
|
||||||
|
(dissoc :static)
|
||||||
(assoc-in [:security :anti-forgery] xss-protection?)))
|
(assoc-in [:security :anti-forgery] xss-protection?)))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,9 +50,9 @@
|
||||||
|
|
||||||
(def production-middleware
|
(def production-middleware
|
||||||
[#(wrap-internal-error % :log (fn [e] (timbre/error e)))
|
[#(wrap-internal-error % :log (fn [e] (timbre/error e)))
|
||||||
|
#(wrap-resource % "public")
|
||||||
#(wrap-file % util/content-dir
|
#(wrap-file % util/content-dir
|
||||||
{:index-files? false :prefer-handler? true})
|
{:index-files? false :prefer-handler? true})
|
||||||
#(wrap-resource % "public")
|
|
||||||
#(wrap-content-type %)
|
#(wrap-content-type %)
|
||||||
#(wrap-not-modified %)])
|
#(wrap-not-modified %)])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue