mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
move IP/FP updaters to web namespace
This commit is contained in:
parent
0506334046
commit
1168ba86f6
4 changed files with 11 additions and 11 deletions
|
@ -17,16 +17,16 @@ defmodule Philomena.Application do
|
||||||
Philomena.Servers.UserLinkUpdater,
|
Philomena.Servers.UserLinkUpdater,
|
||||||
Philomena.Servers.PicartoChannelUpdater,
|
Philomena.Servers.PicartoChannelUpdater,
|
||||||
Philomena.Servers.PiczelChannelUpdater,
|
Philomena.Servers.PiczelChannelUpdater,
|
||||||
Philomena.Servers.UserFingerprintUpdater,
|
|
||||||
Philomena.Servers.UserIpUpdater,
|
|
||||||
Philomena.Servers.Config,
|
Philomena.Servers.Config,
|
||||||
{Pow.Store.Backend.MnesiaCache, extra_db_nodes: Node.list()},
|
{Pow.Store.Backend.MnesiaCache, extra_db_nodes: Node.list()},
|
||||||
{Redix, name: :redix, host: Application.get_env(:philomena, :redis_host)},
|
{Redix, name: :redix, host: Application.get_env(:philomena, :redis_host)},
|
||||||
{Phoenix.PubSub, [name: Philomena.PubSub, adapter: Phoenix.PubSub.PG2]},
|
{Phoenix.PubSub, [name: Philomena.PubSub, adapter: Phoenix.PubSub.PG2]},
|
||||||
|
|
||||||
# Start the endpoint when the application starts
|
# Start the endpoint when the application starts
|
||||||
PhilomenaWeb.Endpoint,
|
|
||||||
PhilomenaWeb.StatsUpdater,
|
PhilomenaWeb.StatsUpdater,
|
||||||
|
PhilomenaWeb.UserFingerprintUpdater,
|
||||||
|
PhilomenaWeb.UserIpUpdater,
|
||||||
|
PhilomenaWeb.Endpoint,
|
||||||
|
|
||||||
# Connection drainer for SIGTERM
|
# Connection drainer for SIGTERM
|
||||||
{RanchConnectionDrainer, ranch_ref: PhilomenaWeb.Endpoint.HTTP, shutdown: 30_000}
|
{RanchConnectionDrainer, ranch_ref: PhilomenaWeb.Endpoint.HTTP, shutdown: 30_000}
|
||||||
|
|
|
@ -3,8 +3,8 @@ defmodule PhilomenaWeb.ReloadUserPlug do
|
||||||
alias Pow.Plug
|
alias Pow.Plug
|
||||||
alias Philomena.Users
|
alias Philomena.Users
|
||||||
|
|
||||||
alias Philomena.Servers.UserIpUpdater
|
alias PhilomenaWeb.UserIpUpdater
|
||||||
alias Philomena.Servers.UserFingerprintUpdater
|
alias PhilomenaWeb.UserFingerprintUpdater
|
||||||
|
|
||||||
def init(opts), do: opts
|
def init(opts), do: opts
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
defmodule Philomena.Servers.UserFingerprintUpdater do
|
defmodule PhilomenaWeb.UserFingerprintUpdater do
|
||||||
alias Philomena.UserFingerprints.UserFingerprint
|
alias Philomena.UserFingerprints.UserFingerprint
|
||||||
alias Philomena.Repo
|
alias Philomena.Repo
|
||||||
import Ecto.Query
|
import Ecto.Query
|
||||||
|
|
||||||
def child_spec([]) do
|
def child_spec([]) do
|
||||||
%{
|
%{
|
||||||
id: Philomena.Servers.UserFingerprintUpdater,
|
id: PhilomenaWeb.UserFingerprintUpdater,
|
||||||
start: {Philomena.Servers.UserFingerprintUpdater, :start_link, [[]]}
|
start: {PhilomenaWeb.UserFingerprintUpdater, :start_link, [[]]}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
defmodule Philomena.Servers.UserIpUpdater do
|
defmodule PhilomenaWeb.UserIpUpdater do
|
||||||
alias Philomena.UserIps.UserIp
|
alias Philomena.UserIps.UserIp
|
||||||
alias Philomena.Repo
|
alias Philomena.Repo
|
||||||
import Ecto.Query
|
import Ecto.Query
|
||||||
|
|
||||||
def child_spec([]) do
|
def child_spec([]) do
|
||||||
%{
|
%{
|
||||||
id: Philomena.Servers.UserIpUpdater,
|
id: PhilomenaWeb.UserIpUpdater,
|
||||||
start: {Philomena.Servers.UserIpUpdater, :start_link, [[]]}
|
start: {PhilomenaWeb.UserIpUpdater, :start_link, [[]]}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue