Invidious is an alternative front-end to YouTube
Use kemal in production mode (#2455)
syeopiteb10f37bea972
diff --git a/src/invidious.cr b/src/invidious.crindex 9e67e216..73abe6b0 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -1549,4 +1549,11 @@ Kemal.config.logger = LOGGERKemal.config.host_binding = Kemal.config.host_binding != "0.0.0.0" ? Kemal.config.host_binding : CONFIG.host_bindingKemal.config.port = Kemal.config.port != 3000 ? Kemal.config.port : CONFIG.portKemal.config.app_name = "Invidious"++# Use in kemal's production mode.+# Users can also set the KEMAL_ENV environmental variable for this to be set automatically.+{% if flag?(:release) || flag?(:production) %}+ Kemal.config.env = "production" if !ENV.has_key?("KEMAL_ENV")+{% end %}+Kemal.run