diff --git a/.dockerignore b/.dockerignore index 3413cd8..7f6605b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,8 +5,7 @@ yarn-debug.log yarn-error.log # Environment and secrets -.env* -*.env +**/*.env* *.pem *.key *.crt diff --git a/assignment-db-service/.env.development b/assignment-db-service/.env.development new file mode 100644 index 0000000..d370b34 --- /dev/null +++ b/assignment-db-service/.env.development @@ -0,0 +1,14 @@ +NODE_ENV=development + +# Environment variables declared in this file are automatically made available to Prisma. +# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema + +# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. +# See the documentation for all the connection string options: https://pris.ly/d/connection-strings + +#use this when testing local, remmber to run the proxy command +DATABASE_URL="postgresql://postgres:wly9H8gjjmxYfg1@localhost:15432/postgres?schema=public" + +# DATABASE_URL="postgres://postgres:wly9H8gjjmxYfg1@bytecamp-db.flycast:5432?sslmode=disable" +# DATABASE_URL=postgres://snakebyte:zVB7lgOiKr89dq6@localhost:5432/snakebyte?sslmode=disable +NODE_PORT=3200 diff --git a/assignment-db-service/.env.test b/assignment-db-service/.env.test new file mode 100644 index 0000000..b464239 --- /dev/null +++ b/assignment-db-service/.env.test @@ -0,0 +1,14 @@ +NODE_ENV=development + +# Environment variables declared in this file are automatically made available to Prisma. +# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema + +# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. +# See the documentation for all the connection string options: https://pris.ly/d/connection-strings + +#use this when testing local, remmber to run the proxy command +DATABASE_URL="postgresql://postgres:wly9H8gjjmxYfg1@host.docker.internal:15432/postgres?schema=public" + +# DATABASE_URL="postgres://postgres:wly9H8gjjmxYfg1@bytecamp-db.flycast:5432?sslmode=disable" +# DATABASE_URL=postgres://snakebyte:zVB7lgOiKr89dq6@localhost:5432/snakebyte?sslmode=disable +NODE_PORT=3200 diff --git a/assignment-service/.env.development b/assignment-service/.env.development new file mode 100644 index 0000000..b683362 --- /dev/null +++ b/assignment-service/.env.development @@ -0,0 +1,11 @@ +NODE_ENV=development +DB_ASSIGNMENT_SERVICE_URL="http://localhost:3200" +DEPLOY_API_URL="http://127.0.0.1:3006" + +AWS_ACCESS_KEY_ID='tid__NSmOVaGknqitaCySppZjqVTgJSdDFnFbWcQllkC_juHwkbQZO' +AWS_ENDPOINT_URL_S3='https://fly.storage.tigris.dev' +AWS_REGION='auto' +AWS_SECRET_ACCESS_KEY='tsec_6Bz1aMbfYQftuq5WfIVEDZkHwskU4MMjVywdtxSP6uxetEBvkSC2VHI9HfTeDgHr4D6kiz' +COMMON_BUCKET='snakeapi-deployment-test-bucket' + +NODE_PORT=8082 \ No newline at end of file diff --git a/assignment-service/.env.test b/assignment-service/.env.test new file mode 100644 index 0000000..fd1e4e1 --- /dev/null +++ b/assignment-service/.env.test @@ -0,0 +1,4 @@ +NODE_ENV=test +DB_ASSIGNMENT_SERVICE_URL="http://js-assignment-db-service:3200" +DEPLOY_API_URL="http://localhost:3006/deploy" +NODE_PORT=8082 \ No newline at end of file diff --git a/auth-service/.env.development b/auth-service/.env.development new file mode 100644 index 0000000..5fd061d --- /dev/null +++ b/auth-service/.env.development @@ -0,0 +1,11 @@ +NODE_ENV=development + +GOOGLE_CLIENT_ID="485880105639-1in8tvb6ondnn198rasuj2d8ank06ntp.apps.googleusercontent.com" +GOOGLE_CLIENT_SECRET="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" +GOOGLE_CALLBACK_URL="http://localhost:8080/auth/google/callback" +LOGIN_REDIRECT_URL="http://localhost:5173/" +ACCEPTED_ORIGINS=http://localhost:3000,http://localhost:8081,http://localhost:3001,http://localhost:5173 +ASSIGNMENT_SERVICE_URL="http://localhost:8082" +DB_USER_SERVICE_URL="http://localhost:3100/" +AUTH_SESSION_KEY="f3f4d8e6b17a4b3abdc8e9a2c0457aaf91c0d5f6e3b7a9c8df624bd71ea35f42" +PORT=8080 \ No newline at end of file diff --git a/deployment-service/.env.development b/deployment-service/.env.development new file mode 100644 index 0000000..c0d57cc --- /dev/null +++ b/deployment-service/.env.development @@ -0,0 +1,8 @@ +FLY_ACCESS_TOKEN="FlyV1 fm2_lJPECAAAAAAACJJHxBC35kpObFZDsJAPn5pJQiKPwrVodHRwczovL2FwaS5mbHkuaW8vdjGUAJLOAA//nh8Lk7lodHRwczovL2FwaS5mbHkuaW8vYWFhL3YxxDyO5yDXiITf8KTDPNnKb4gSteSj3yQHuAyyengEARfYV25mqzmtG3S4Bu7CYues17SSu9gGifeNLn4hXWrETi4+QteTFAMss5GZkoSVshqbA9AuVy+e3Bjcy+T0ts2PUZxzr16/M8qMlDkqFrZ1eSah/tS2OaPvrcW3s+pyH0A2ifEFNAdzVKR2YHRy/cQgEdZ4GzSTKKSHn9tYI20WlI2hNu8WSZUGAAVZeXo9p/A=,fm2_lJPETi4+QteTFAMss5GZkoSVshqbA9AuVy+e3Bjcy+T0ts2PUZxzr16/M8qMlDkqFrZ1eSah/tS2OaPvrcW3s+pyH0A2ifEFNAdzVKR2YHRy/cQQRbF7X4pBgIyHUIo2eht1IsO5aHR0cHM6Ly9hcGkuZmx5LmlvL2FhYS92MZgEks5oEWAkzmgamsIXzgAPYVkKkc4AD2FZDMQQ7KQcPpIJz2LenFGn/yl/Z8QgShJnZLpaGTwTYDdDKpI8sxPnsmqqjTYJfjn+wtLJbG4=" +AWS_ACCESS_KEY_ID='tid__NSmOVaGknqitaCySppZjqVTgJSdDFnFbWcQllkC_juHwkbQZO' +AWS_ENDPOINT_URL_S3='https://fly.storage.tigris.dev' +AWS_REGION='auto' +AWS_SECRET_ACCESS_KEY='tsec_6Bz1aMbfYQftuq5WfIVEDZkHwskU4MMjVywdtxSP6uxetEBvkSC2VHI9HfTeDgHr4D6kiz' +COMMON_BUCKET='snakeapi-deployment-test-bucket' +FLY_ORG='personal' +IMAGE_REF="registry.fly.io/snake-api-template:latest" \ No newline at end of file diff --git a/user-db-service/.env.development b/user-db-service/.env.development new file mode 100644 index 0000000..7509cce --- /dev/null +++ b/user-db-service/.env.development @@ -0,0 +1,12 @@ +# Environment variables declared in this file are automatically made available to Prisma. +# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema + +# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. +# See the documentation for all the connection string options: https://pris.ly/d/connection-strings + +#use this when testing local, remmber to run the proxy command +DATABASE_URL="postgresql://postgres:wly9H8gjjmxYfg1@host.docker.internal:15432/postgres?schema=public" + +# DATABASE_URL="postgres://postgres:wly9H8gjjmxYfg1@bytecamp-db.flycast:5432?sslmode=disable" +# DATABASE_URL=postgres://snakebyte:zVB7lgOiKr89dq6@localhost:5432/snakebyte?sslmode=disable +NODE_PORT=3100