mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-14 00:55:10 +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
|
git: https://github.com/mamantoha/http_proxy.git
|
||||||
version: 0.10.3
|
version: 0.10.3
|
||||||
|
|
||||||
inotify:
|
|
||||||
git: https://github.com/petoem/inotify.cr.git
|
|
||||||
version: 1.0.3
|
|
||||||
|
|
||||||
kemal:
|
kemal:
|
||||||
git: https://github.com/kemalcr/kemal.git
|
git: https://github.com/kemalcr/kemal.git
|
||||||
version: 1.6.0
|
version: 1.6.0
|
||||||
|
|||||||
@@ -26,9 +26,6 @@ dependencies:
|
|||||||
version: ~> 0.1.1
|
version: ~> 0.1.1
|
||||||
redis:
|
redis:
|
||||||
github: jgaskins/redis
|
github: jgaskins/redis
|
||||||
inotify:
|
|
||||||
github: petoem/inotify.cr
|
|
||||||
version: 1.0.3
|
|
||||||
http_proxy:
|
http_proxy:
|
||||||
github: mamantoha/http_proxy
|
github: mamantoha/http_proxy
|
||||||
version: ~> 0.10.3
|
version: ~> 0.10.3
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ require "yaml"
|
|||||||
require "compress/zip"
|
require "compress/zip"
|
||||||
require "protodec/utils"
|
require "protodec/utils"
|
||||||
require "redis"
|
require "redis"
|
||||||
require "inotify"
|
|
||||||
|
|
||||||
require "./invidious/database/*"
|
require "./invidious/database/*"
|
||||||
require "./invidious/database/migrations/*"
|
require "./invidious/database/migrations/*"
|
||||||
@@ -60,19 +59,6 @@ end
|
|||||||
alias IV = Invidious
|
alias IV = Invidious
|
||||||
|
|
||||||
CONFIG = Config.load
|
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
|
HMAC_KEY = CONFIG.hmac_key
|
||||||
|
|
||||||
PG_DB = begin
|
PG_DB = begin
|
||||||
|
|||||||
@@ -254,10 +254,6 @@ class Config
|
|||||||
|
|
||||||
property backend_name_prefix : String = "Backend"
|
property backend_name_prefix : String = "Backend"
|
||||||
|
|
||||||
{% if flag?(:linux) %}
|
|
||||||
property reload_config_automatically : Bool = true
|
|
||||||
{% end %}
|
|
||||||
|
|
||||||
def disabled?(option)
|
def disabled?(option)
|
||||||
case disabled = CONFIG.disable_proxy
|
case disabled = CONFIG.disable_proxy
|
||||||
when Bool
|
when Bool
|
||||||
|
|||||||
Reference in New Issue
Block a user