mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-13 16:45:11 +00:00
remove automatic config reload
Not really needed anymore
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user