aboutsummaryrefslogtreecommitdiff
path: root/app/config
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-03-22 11:53:13 -0600
committerBen Beltran <ben@nsovocal.com>2020-03-22 11:53:13 -0600
commit3841606684ee3d233266ad490905076a3562842c (patch)
tree407adde62e5181cae2b0d3611bc6c18c00a20d67 /app/config
parent00a6e8aa8dd06f8a2bd7ccccdccfcb6215cf4841 (diff)
Remove server
Diffstat (limited to 'app/config')
-rw-r--r--app/config/config.js8
-rw-r--r--app/config/env.dist1
2 files changed, 9 insertions, 0 deletions
diff --git a/app/config/config.js b/app/config/config.js
new file mode 100644
index 0000000..c915f70
--- /dev/null
+++ b/app/config/config.js
@@ -0,0 +1,8 @@
+/*
+ * The main configuration object for the Forum frontend. These values
+ * are calculated during compile time and need to be set in a .env
+ * file, otherwise it won't work.
+ */
+
+// Location of the socket server
+export const socketServer = process.env.FORUM_SOCKET_SERVER;
diff --git a/app/config/env.dist b/app/config/env.dist
new file mode 100644
index 0000000..0bcd782
--- /dev/null
+++ b/app/config/env.dist
@@ -0,0 +1 @@
+FORUM_SOCKET_SERVER=ws://location_of_socket_server