mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-15 18:08:29 +00:00
Compare against 1.17.0-dev until full release
This commit is contained in:
parent
628f45de01
commit
60172a2e6a
@ -1,4 +1,4 @@
|
|||||||
{% if compare_versions(Crystal::VERSION, "1.17.0") >= 0 %}
|
{% if compare_versions(Crystal::VERSION, "1.17.0-dev") >= 0 %}
|
||||||
# Strip StaticFileHandler from the binary
|
# Strip StaticFileHandler from the binary
|
||||||
#
|
#
|
||||||
# This allows us to compile on 1.17.0 as the compiler won't try to
|
# This allows us to compile on 1.17.0 as the compiler won't try to
|
||||||
|
@ -233,7 +233,7 @@ add_handler APIHandler.new
|
|||||||
add_handler AuthHandler.new
|
add_handler AuthHandler.new
|
||||||
add_handler DenyFrame.new
|
add_handler DenyFrame.new
|
||||||
|
|
||||||
{% if compare_versions(Crystal::VERSION, "1.17.0") >= 0 %}
|
{% if compare_versions(Crystal::VERSION, "1.17.0-dev") >= 0 %}
|
||||||
Kemal.config.serve_static = false
|
Kemal.config.serve_static = false
|
||||||
add_handler Invidious::HttpServer::StaticAssetsHandler.new("assets", directory_listing: false)
|
add_handler Invidious::HttpServer::StaticAssetsHandler.new("assets", directory_listing: false)
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% skip_file if compare_versions(Crystal::VERSION, "1.17.0") < 0 %}
|
{% skip_file if compare_versions(Crystal::VERSION, "1.17.0-dev") < 0 %}
|
||||||
|
|
||||||
module Invidious::HttpServer
|
module Invidious::HttpServer
|
||||||
class StaticAssetsHandler < HTTP::StaticFileHandler
|
class StaticAssetsHandler < HTTP::StaticFileHandler
|
||||||
|
Loading…
Reference in New Issue
Block a user