remove automatic config reload

Not really needed anymore
This commit is contained in:
Fijxu
2025-09-12 23:40:49 -03:00
parent 452d62d289
commit 65d7bad723
4 changed files with 0 additions and 25 deletions

View File

@@ -31,7 +31,6 @@ require "yaml"
require "compress/zip"
require "protodec/utils"
require "redis"
require "inotify"
require "./invidious/database/*"
require "./invidious/database/migrations/*"
@@ -60,19 +59,6 @@ end
alias IV = Invidious
CONFIG = Config.load
Signal::HUP.trap do
Config.reload
end
{% if flag?(:linux) %}
if CONFIG.reload_config_automatically
Inotify.watch("config/config.yml") do |event|
Config.reload
end
end
{% end %}
HMAC_KEY = CONFIG.hmac_key
PG_DB = begin

View File

@@ -254,10 +254,6 @@ class Config
property backend_name_prefix : String = "Backend"
{% if flag?(:linux) %}
property reload_config_automatically : Bool = true
{% end %}
def disabled?(option)
case disabled = CONFIG.disable_proxy
when Bool