Merge pull request #13 from CloudFire-LLC/more-housecleaning

cloudfire -> fireguard
This commit is contained in:
Jamil
2020-05-05 22:09:55 -07:00
committed by GitHub
10 changed files with 20 additions and 13 deletions

View File

@@ -18,6 +18,7 @@ jobs:
ports:
- 5432:5432
env:
POSTGRES_USER: fireguard
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready

View File

@@ -1,5 +1,5 @@
![Test](https://github.com/CloudFire-LLC/cloudfire-ce/workflows/Test/badge.svg)
![Test](https://github.com/CloudFire-LLC/fireguard/workflows/Test/badge.svg)
# CloudFire
# FireGuard
Under active development. Check back later.

View File

@@ -61,7 +61,7 @@ select {
margin: -1rem 0 2rem;
}
/* Cloudfire promo and logo */
/* FireGuard promo and logo */
.cf-hero {
text-align: center;
border-bottom: 1px solid #e3e3e3;

View File

@@ -9,7 +9,7 @@ defmodule CfHttpWeb.Plugs.Authenticator do
def init(default), do: default
def call(conn, _default) do
user = %User{email: "dev_user@cloudfire.network"}
user = %User{email: "dev_user@fireguard.network"}
assign(conn, :current_user, user)
end
end

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Cloudfire</title>
<title>FireGuard</title>
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
<%= csrf_meta_tag() %>
</head>
@@ -17,7 +17,7 @@
</ul>
</nav>
<a href="<%= CfHttpWeb.Endpoint.url() %>" class="cf-logo">
<img src="<%= Routes.static_path(@conn, "/images/logo.svg") %>" alt="Cloudfire Logo"/>
<img src="<%= Routes.static_path(@conn, "/images/logo.svg") %>" alt="FireGuard Logo"/>
</a>
</section>
</header>

View File

@@ -0,0 +1,5 @@
-- Execute this with your DB admin user
create role fireguard;
alter role fireguard with password 'postgres';
alter role firegurd with login;
alter role fireguard with superuser;

View File

@@ -2,9 +2,9 @@ import Config
# Configure your database
config :cf_http, CfHttp.Repo,
username: "cloudfire",
username: "fireguard",
password: "postgres",
database: "cloudfire_dev",
database: "fireguard_dev",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10

View File

@@ -3,13 +3,14 @@ import Config
defmodule DBConfig do
def config(db_url) when is_nil(db_url) do
[
username: "postgres",
username: "fireguard",
password: "postgres",
database: "cloudfire_test",
database: "fireguard_test",
hostname: System.get_env("POSTGRES_HOST", "localhost"),
pool: Ecto.Adapters.SQL.Sandbox
]
end
def config(db_url) do
[
url: db_url,

View File

@@ -1,6 +1,6 @@
defmodule CloudfireUmbrella.MixProject do
defmodule FireguardUmbrella.MixProject do
@moduledoc """
Welcome to the CloudFire Elixir Umbrella Project
Welcome to the FireGuard Elixir Umbrella Project
"""
use Mix.Project

View File

@@ -2,7 +2,7 @@
set -e
# This file provisions the vagrant vm with needed tools to develop
# and test a single-host CloudFire instance.
# and test a single-host FireGuard instance.
# Add WireGuard PPA
add-apt-repository ppa:wireguard/wireguard