mirror of
https://git.sr.ht/~edwardloveall/scribe
synced 2025-12-10 12:41:23 +00:00
Upgrade to crystal 1.14.0
This commit is contained in:
@@ -26,10 +26,9 @@ Avram::QueryLog.dexter.configure(:none)
|
||||
|
||||
# Skip logging static assets requests in development
|
||||
Lucky::LogHandler.configure do |settings|
|
||||
if LuckyEnv.development?
|
||||
settings.skip_if = ->(context : HTTP::Server::Context) {
|
||||
context.request.method.downcase == "get" &&
|
||||
context.request.resource.starts_with?(/\/css\/|\/js\/|\/assets\/|\/favicon\.ico/)
|
||||
}
|
||||
end
|
||||
settings.skip_if = ->(context : HTTP::Server::Context) {
|
||||
LuckyEnv.development? &&
|
||||
context.request.method.downcase == "get" &&
|
||||
context.request.resource.starts_with?(/\/css\/|\/js\/|\/assets\/|\/favicon\.ico/)
|
||||
}
|
||||
end
|
||||
|
||||
@@ -20,7 +20,7 @@ Lucky::ForceSSLHandler.configure do |settings|
|
||||
# This will cause http requests to be redirected to https:
|
||||
#
|
||||
# settings.enabled = LuckyEnv.production?
|
||||
# settings.strict_transport_security = {max_age: 1.year, include_subdomains: true}
|
||||
settings.strict_transport_security = {max_age: 1.year, include_subdomains: true}
|
||||
#
|
||||
# Or, leave it disabled:
|
||||
settings.enabled = false
|
||||
@@ -31,9 +31,9 @@ Lucky::RequestIdHandler.configure do |settings|
|
||||
# To enable the request ID, uncomment the lines below.
|
||||
# You can set your own custom String, or use a random UUID.
|
||||
#
|
||||
# settings.set_request_id = ->(context : HTTP::Server::Context) {
|
||||
# UUID.random.to_s
|
||||
# }
|
||||
settings.set_request_id = ->(context : HTTP::Server::Context) {
|
||||
UUID.random.to_s
|
||||
}
|
||||
end
|
||||
|
||||
private def secret_key_from_env
|
||||
|
||||
Reference in New Issue
Block a user