This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
51 lines (44 loc) · 1.7 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const { env } = process;
// General
export const url = env.SITE_URL || "https://me.abhay7.dev";
export const year = new Date().getFullYear();
// Essentials
export const root = new URL("./", import.meta.url).pathname;
export const NODE_ENV = env.NODE_ENV || "production";
export const PORT = env.PORT || 8080;
export const SERVER_TIME_ZONE = Intl.DateTimeFormat().resolvedOptions().timeZone;
// Valorant Stuff
export const Valorant = {
NAME: env.VALORANT_NAME || "MisterChief7",
TAG: env.VALORANT_TAG || "00000",
API_KEY: env.VALORANT_API_KEY || ""
}
// Xbox Stuff
export const XboxLive = {
EMAIL: env.XBOX_LIVE_EMAIL,
PASSWORD: env.XBOX_LIVE_PASSWORD
}
// Minecraft Stuff
export const MINECRAFT_JAVA_USERNAME = env.MINECRAFT_JAVA_USERNAME || "MisterChief007";
// GitHub
export const GITHUB = {
USERNAME: env.GITHUB_USERNAME || "EpicGamer007",
TOKEN: env.GITHUB_TOKEN || "",
}
export const csp = `upgrade-insecure-requests;
default-src 'none';
child-src 'none';
frame-src 'none';
frame-ancestors 'none';
media-src 'self' *.xboxlive.com;
base-uri 'none';
object-src 'none';
manifest-src 'self';
img-src 'self' *.xboxlive.com https://avatars.githubusercontent.com https://textures.minecraft.net https://media.valorant-api.com;
connect-src 'self' *.abhay7.dev;
font-src 'self';
style-src 'self';
script-src 'self' *.abhay7.dev;
worker-src 'self';
form-action 'none';
`.replace(/\s/g, " ");