mirror of
https://github.com/benbusby/farside.git
synced 2025-04-29 23:20:03 +00:00
Refactor project to new name
The name of the project is being refactored from Privacy Revolver to Farside. The reasoning behind this is: 1. A shorter name is easier to remember 2. It can stand for "FOSS alternative redirecting service" (which I know doesn't encapsulate all letters from "farside", but it's close enough). This commit also includes improvements to the update script for determining how far along the script is.
This commit is contained in:
parent
06bb8403dd
commit
8042dcad0c
8 changed files with 45 additions and 30 deletions
17
lib/farside/application.ex
Normal file
17
lib/farside/application.ex
Normal file
|
@ -0,0 +1,17 @@
|
|||
defmodule Farside.Application do
|
||||
@redis_conn Application.fetch_env!(:farside, :redis_conn)
|
||||
@moduledoc false
|
||||
|
||||
use Application
|
||||
|
||||
@impl true
|
||||
def start(_type, _args) do
|
||||
children = [
|
||||
Plug.Cowboy.child_spec(scheme: :http, plug: Farside.Router, options: [port: 4001]),
|
||||
{Redix, {@redis_conn, [name: :redix]}}
|
||||
]
|
||||
|
||||
opts = [strategy: :one_for_one, name: Farside.Supervisor]
|
||||
Supervisor.start_link(children, opts)
|
||||
end
|
||||
end
|
|
@ -1,5 +1,5 @@
|
|||
defmodule PrivacyRevolver.Router do
|
||||
@fallback_str Application.fetch_env!(:privacy_revolver, :fallback_str)
|
||||
defmodule Farside.Router do
|
||||
@fallback_str Application.fetch_env!(:farside, :fallback_str)
|
||||
|
||||
use Plug.Router
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
defmodule PrivacyRevolver.Application do
|
||||
@redis_conn Application.fetch_env!(:privacy_revolver, :redis_conn)
|
||||
@moduledoc false
|
||||
|
||||
use Application
|
||||
|
||||
@impl true
|
||||
def start(_type, _args) do
|
||||
children = [
|
||||
Plug.Cowboy.child_spec(scheme: :http, plug: PrivacyRevolver.Router, options: [port: 4001]),
|
||||
{Redix, {@redis_conn, [name: :redix]}}
|
||||
]
|
||||
|
||||
opts = [strategy: :one_for_one, name: PrivacyRevolver.Supervisor]
|
||||
Supervisor.start_link(children, opts)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue