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

@@ -24,10 +24,6 @@ shards:
git: https://github.com/mamantoha/http_proxy.git
version: 0.10.3
inotify:
git: https://github.com/petoem/inotify.cr.git
version: 1.0.3
kemal:
git: https://github.com/kemalcr/kemal.git
version: 1.6.0

View File

@@ -26,9 +26,6 @@ dependencies:
version: ~> 0.1.1
redis:
github: jgaskins/redis
inotify:
github: petoem/inotify.cr
version: 1.0.3
http_proxy:
github: mamantoha/http_proxy
version: ~> 0.10.3

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