-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dev/jacob/authroutes
- Loading branch information
Showing
16 changed files
with
1,782 additions
and
8,695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# API for Reflections | Projections 2024 | ||
|
||
Test | ||
|
||
Contributors: | ||
|
||
- Aydan Pirani | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
cd /home/ubuntu/rp-api | ||
yarn build | ||
yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
#!/bin/bash | ||
cd /home/ubuntu/rp-api | ||
sudo yarn | ||
sudo yarn | ||
|
||
sudo pm2 describe appname 2>&1 /dev/null | ||
RUNNING=$? | ||
|
||
|
||
if [ "${RUNNING}" -eq 0 ]; then | ||
sudo pm2 start build/app.js --name RP_API -i 2 --wait-ready --listen-timeout 10000 | ||
fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
udo pm2 reload RP_API!/bin/bash | ||
cd /home/ubuntu/rp-api | ||
sudo pm2 reload RP_API | ||
sudo pm2 reload RP_API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ export const Config = { | |
ALLOWED_CORS_ORIGIN_PATTERNS: [ | ||
new RegExp("(.*).reflectionsprojections.org(.*)"), | ||
new RegExp("deploy-preview-[0-9]*(--rp2024.netlify.app)(.*)"), | ||
new RegExp("(.*)localhost(.*)"), | ||
new RegExp("(.*)127.0.0.1(.*)"), | ||
], | ||
|
||
ENV: Environment.parse(getEnv("ENV")), | ||
|
@@ -25,10 +27,45 @@ export const Config = { | |
CLIENT_ID: getEnv("OAUTH_GOOGLE_CLIENT_ID"), | ||
CLIENT_SECRET: getEnv("OAUTH_GOOGLE_CLIENT_SECRET"), | ||
|
||
// AUTH_CALLBACK_URI_BASE: "http://localhost:3000/auth/callback/", | ||
AUTH_CALLBACK_URI_BASE: | ||
// "http://localhost:3000/auth/callback/", | ||
"https://api.reflectionsprojections.org/auth/callback/", | ||
|
||
// prettier-ignore | ||
AUTH_ADMIN_WHITELIST: new Set([ | ||
// Dev Chairs/Code-Owners (reach out to these people for questions) | ||
"[email protected]", // Aydan Pirani | ||
"[email protected]", // Divya Koya | ||
|
||
// Directors | ||
"[email protected]", // Ojaswee Chaudhary | ||
"[email protected]", // Ritika Vithani | ||
|
||
// Committee Chairs | ||
"[email protected]", // Adit Shah (Ops) | ||
"[email protected]", // Arpit Bansal (Ops) | ||
"[email protected]", // Aashna Mauskar (Marketing) | ||
"[email protected]", // Cole Jordan (Marketing) | ||
"[email protected]", // Divya Machineni (Corp) | ||
"[email protected]", // Nancy Zhang (Design) | ||
"[email protected]", // Preethi Gomathinayagam (Content) | ||
"[email protected]", // Sailaja Nallacheruvu (Corp) | ||
"[email protected]", // Sahana Hariharan (Design) | ||
"[email protected]", // Yoshee Jain (Content) | ||
|
||
// Dev Team | ||
"[email protected]", // Aryan Bahl | ||
"[email protected]", // Aryan Bhardwaj | ||
"[email protected]", // Alex Yang | ||
"[email protected]", // Dev Patel | ||
"[email protected]", // Jacob Chang | ||
"[email protected]", // Jeremy Wu | ||
"[email protected]", // Manya Dua | ||
"[email protected]", // Riya Patel | ||
"[email protected]", // Ronit Anandani | ||
"[email protected]", // Shreenija Daggavolu | ||
]), | ||
|
||
JWT_SIGNING_SECRET: getEnv("JWT_SIGNING_SECRET"), | ||
JWT_EXPIRATION_TIME: "1 day", | ||
|
||
|
@@ -47,5 +84,5 @@ export const Config = { | |
export const DeviceRedirects: Record<string, string> = { | ||
web: "http://localhost:5173/", | ||
dev: "https://api.reflectionsprojections.org/auth/dev/", | ||
mobile: "https//www.reflectionsprojections.org/", | ||
mobile: "https://www.reflectionsprojections.org/", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.