-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
23 lines (20 loc) · 800 Bytes
/
config.js
File metadata and controls
23 lines (20 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import dotenv from "dotenv";
dotenv.config();
const APP_HOST = process.env.WEBAPP_HOST || "0.0.0.0";
const APP_PORT = process.env.WEBAPP_PORT || 3000;
const WEBAPP_URL = process.env.WEBAPP_URL || ""; // Webapp url
const TG_APP_URL = process.env.TG_APP_URL || ""; // Telegram web app url (from BotFather)
const BOT_TOKEN = process.env.BOT_TOKEN || ""; // Add your token from Telegram's BotFather
const SECRET_TOKEN = process.env.SECRET_TOKEN || "";
const PUBLIC_DIR = process.env.PUBLIC_DIR || "public";
const SPA_FILENAME = process.env.SPA_FILENAME || "index.html";
export const config = {
APP_HOST: APP_HOST,
APP_PORT: APP_PORT,
WEBAPP_URL: WEBAPP_URL,
TG_APP_URL: TG_APP_URL,
BOT_TOKEN: BOT_TOKEN,
SECRET_TOKEN: SECRET_TOKEN,
PUBLIC_DIR: PUBLIC_DIR,
SPA_FILENAME: SPA_FILENAME
};