Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d5776ef
add application db schema
Oct 6, 2024
c2fa3e3
add post application controller
Oct 6, 2024
fa2bc55
edit schema and finish controllers
Oct 6, 2024
5f00bd1
add applications routes
Oct 6, 2024
cacc089
add router to api
Oct 6, 2024
6fded0f
add check for exisiting application
Oct 6, 2024
6647741
fix application routes
Oct 6, 2024
ae9c9e1
send reply apon application
Oct 6, 2024
64ef220
add missing return after failure to prevent crash
Oct 6, 2024
03bddfd
Merge branch 'main' of https://github.com/ARCv3/ARC3-API into ARC-API…
Dec 13, 2024
73e05c7
add deploy workflow
Dec 13, 2024
7840690
add dockerfile
Dec 13, 2024
b6159fb
fix keyfile and dockerfile
Dec 13, 2024
e45af45
Merge branch 'main' into ARC-API-AWS
IzzyDotExe Dec 13, 2024
2a11634
add user to dockerfile
Dec 13, 2024
dd4eec8
Merge branch 'ARC-API-AWS' of https://github.com/ARCv3/ARC3-API into …
Dec 13, 2024
876e242
fix dockerfile run
Dec 13, 2024
13278ac
fix docker build
Dec 13, 2024
0cc48a0
Merge branch 'main' into ARC-API-AWS
IzzyDotExe Dec 13, 2024
b0e81a6
add
Dec 13, 2024
6472e05
Merge branch 'ARC-API-AWS' of https://github.com/ARCv3/ARC3-API into …
Dec 13, 2024
9b75a93
Merge branch 'main' into ARC-API-AWS
IzzyDotExe Dec 13, 2024
4330a12
fix dockerfile permissions
Dec 13, 2024
f3b4d7f
Merge branch 'main' into ARC-API-AWS
IzzyDotExe Dec 13, 2024
8841824
fix aws workflow
Mar 3, 2025
ea7be1f
fix deploy pipeline (#23)
IzzyDotExe Mar 4, 2025
6a55efb
Merge branch 'main' into ARC-API-AWS
IzzyDotExe Mar 4, 2025
241b20b
Merge branch 'main' of https://github.com/ARCv3/ARC3-API into ARC-API…
Mar 6, 2025
8796eea
do not wait for stability
Mar 6, 2025
5025a3c
fix bin www
Mar 6, 2025
0ec76c5
add env
Mar 6, 2025
334b5b6
Merge branch 'main' of https://github.com/ARCv3/ARC3-API into ARC-API…
Mar 6, 2025
f6e10d5
remove invalid config
Mar 6, 2025
5d9d9fd
Merge branch 'main' of https://github.com/ARCv3/ARC3-API into ARC-API…
Mar 6, 2025
b087116
fix task def
Mar 6, 2025
74b96ad
fix user
Mar 6, 2025
e2759ef
debug log
Mar 6, 2025
95fa21e
Merge branch 'main' of https://github.com/ARCv3/ARC3-API into ARC-API…
Mar 6, 2025
f73fcbd
kjflk
Mar 6, 2025
a7b209d
inject environment
Mar 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/aws-deploy-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,33 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
env:
PORT: ${{ secrets.PORT }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
FULLCHAIN: ${{ secrets.FULLCHAIN }}
PRIVKEY: ${{ secrets.PRIVKEY }}
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
DISCORD_CLIENT_SECRET: ${{ secrets.DISCORD_CLIENT_SECRET }}
DISCORD_REDIRECT_URI: ${{ secrets.DISCORD_REDIRECT_URI }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
CLIENT_REDIRECT_URI: ${{ secrets.CLIENT_REDIRECT_URI }}
TOKEN: ${{ secrets.TOKEN }}
DIRECT_URL: ${{ secrets.DIRECT_URL }}
HOSTED_URL: ${{ secrets.HOSTED_URL }}

run: |
sed -i "s/<MONGODB_URI>/$MONGODB_URI/g" .github/workflows/td.json
sed -i "s/<PORT>/$PORT/g" .github/workflows/td.json
sed -i "s/<FULLCHAIN>/$FULLCHAIN/g" .github/workflows/td.json
sed -i "s/<PRIVKEY>/$PRIVKEY/g" .github/workflows/td.json
sed -i "s/<DISCORD_CLIENT_ID>/$DISCORD_CLIENT_ID/g" .github/workflows/td.json
sed -i "s/<DISCORD_CLIENT_SECRET>/$DISCORD_CLIENT_SECRET/g" .github/workflows/td.json
sed -i "s/<JWT_SECRET>/$JWT_SECRET/g" .github/workflows/td.json
sed -i "s/<CLIENT_REDIRECT_URI>/$CLIENT_REDIRECT_URI/g" .github/workflows/td.json
sed -i "s/TOKEN>/$TOKENI/g" .github/workflows/td.json
sed -i "s/<DIRECT_URL>/$DIRECT_URL/g" .github/workflows/td.json
sed -i "s/<HOSTED_URL>/$HOSTED_UR/g".github/workflows/td.json
sed -i "s/<DISCORD_REDIRECT_URI>/$DISCORD_REDIRECT_URI/g" .github/workflows/td.json

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@0e613a0980cbf65ed5b322eb7a1e075d28913a83
Expand Down
48 changes: 47 additions & 1 deletion .github/workflows/td.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,53 @@
}
],
"essential": true,
"environment": [],
"environment": [

{
"name": "PORT",
"value": "<PORT>"
},
{
"name": "FULLCHAIN",
"value": "<FULLCHAIN>"
},
{
"name": "PRIVKEY",
"value": "<PRIVKEY>"
},
{
"name": "DISCORD_CLIENT_ID",
"value": "<DISCORD_CLIENT_ID>"
},
{
"name": "DISCORD_CLIENT_SECRET",
"value": "<DISCORD_CLIENT_SECRET>"
},
{
"name": "DISCORD_REDIRECT_URI",
"value": "<DISCORD_REDIRECT_URI>"
},
{
"name": "JWT_SECRET",
"value": "<JWT_SECRET>"
},
{
"name": "CLIENT_REDIRECT_URI",
"value": "<CLIENT_REDIRECT_URI>"
},
{
"name": "TOKEN",
"value": "<TOKEN>"
},
{
"name": "DIRECT_URL",
"value": "<DIRECT_URL>"
},
{
"name": "HOSTED_URL",
"value": "<HOSTED_URL>"
}
],
"mountPoints": [],
"volumesFrom": [],
"logConfiguration": {
Expand Down
2 changes: 1 addition & 1 deletion bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dotenv.config();
const port = process.env.PORT || 3000;

(async () => {

console.log(process.env.MONGODB_URI)
mongoose.connect(process.env.MONGODB_URI)
const server = https.createServer(options, app);

Expand Down
2 changes: 1 addition & 1 deletion bin/www-dev
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dotenv.config();

const port = process.env.PORT || 3000;
(async () => {

console.log(process.env.MONGODB_URI)
mongoose.connect(process.env.MONGODB_URI)

app.listen(port, () => {
Expand Down