From f3cb4ce73c080317aa4855917411b8f6b6a374e3 Mon Sep 17 00:00:00 2001
From: Inex Code
Date: Sat, 18 Sep 2021 18:16:21 +0300
Subject: [PATCH] Revert to fediverse.space domain
---
backend/lib/backend_web/endpoint.ex | 2 +-
frontend/nginx.conf | 2 +-
frontend/public/index.html | 10 +++++-----
frontend/src/components/organisms/Nav.tsx | 2 +-
frontend/src/components/screens/AboutScreen.tsx | 16 ++++++++--------
frontend/src/components/screens/AdminScreen.tsx | 4 ++--
frontend/src/components/screens/LoginScreen.tsx | 4 +---
7 files changed, 19 insertions(+), 21 deletions(-)
diff --git a/backend/lib/backend_web/endpoint.ex b/backend/lib/backend_web/endpoint.ex
index 2161243..82e3950 100644
--- a/backend/lib/backend_web/endpoint.ex
+++ b/backend/lib/backend_web/endpoint.ex
@@ -46,7 +46,7 @@ defmodule BackendWeb.Endpoint do
)
plug(Corsica,
- origins: ["http://localhost:3001", ~r{^https://(.*\.?)index\.community$}],
+ origins: ["http://localhost:3001", ~r{^https://(.*\.?)index\.community$}, ~r{^https://(.*\.?)fediverse\.space$}],
allow_headers: ["content-type", "token"]
)
diff --git a/frontend/nginx.conf b/frontend/nginx.conf
index 9afa4a8..7e964b7 100644
--- a/frontend/nginx.conf
+++ b/frontend/nginx.conf
@@ -1,7 +1,7 @@
server {
listen 80;
listen [::]:80;
- server_name index.community;
+ server_name fediverse.space;
gzip on;
gzip_comp_level 5;
diff --git a/frontend/public/index.html b/frontend/public/index.html
index 56f3701..588db06 100644
--- a/frontend/public/index.html
+++ b/frontend/public/index.html
@@ -9,19 +9,19 @@
-
+
-
+
-
+
-
+
- index.community
+ fediverse.space
diff --git a/frontend/src/components/organisms/Nav.tsx b/frontend/src/components/organisms/Nav.tsx
index e923dde..95b6613 100644
--- a/frontend/src/components/organisms/Nav.tsx
+++ b/frontend/src/components/organisms/Nav.tsx
@@ -24,7 +24,7 @@ class Nav extends React.Component<{}, NavState> {