generated from phucvinh57/fastify-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from TickLabVN/staging
Staging
- Loading branch information
Showing
33 changed files
with
642 additions
and
169 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,8 +1,34 @@ | ||
FASTIFY_PORT= | ||
FASTIFY_TEST_PORT= | ||
|
||
POSTGRES_USER= | ||
POSTGRES_PASSWORD= | ||
POSTGRES_DB= | ||
POSTGRES_DB=ssps_db | ||
POSTGRES_PORT= | ||
POSTGRES_TEST_PORT=s | ||
POSTGRES_URL= | ||
|
||
CORS_WHITE_LIST= | ||
CORS_WHITE_LIST=[http://localhost:3000, http://localhost:8080] | ||
COOKIE_SECRET= | ||
JWT_SECRET= | ||
JWT_SECRET= | ||
|
||
MINIO_URL= | ||
MINIO_SERVER_ENDPOINT= | ||
MINIO_PORT=9000 | ||
MINIO_ACCESS_KEY= | ||
MINIO_SECRET_KEY= | ||
MINIO_BUCKET_NAME=ssps | ||
|
||
CHECKOUT_ENVIRONMENT=sandbox | ||
PAYPAL_LIVE_ENDPOINT=https://api-m.paypal.com | ||
PAYPAL_SANDBOX_ENDPOINT=https://api-m.sandbox.paypal.com | ||
PAYPAL_CLIENT_ID= | ||
PAYPAL_CLIENT_SECRET= | ||
|
||
OPEN_EXCHANGE_RATES_ENDPOINT=https://open.er-api.com | ||
OPEN_EXCHANGE_RATES_APP_ID= | ||
|
||
GOOGLE_CLIENT_ID= | ||
GOOGLE_CLIENT_SECRET= | ||
GOOGLE_REDIRECT_URL= | ||
UI_HOME_URL=https://ssps.tickflow.net/home |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Security Policy | ||
|
||
## Unsupported Security Policy | ||
|
||
This project is a PEP (Personal Exercise Project) and does not come with any official support for security updates. As a result, there are no designated versions that are actively supported for security patches. | ||
|
||
We acknowledge that security is essential, and users are encouraged to use this project for educational or personal purposes only. Given its nature as a PEP project, there are no guarantees of updates, including security updates. | ||
|
||
## Reporting a Vulnerability | ||
|
||
While this project does not have a formal process for handling security vulnerabilities, responsible disclosure is appreciated. If you discover a vulnerability and would like to report it, you can do so by creating an issue in the project repository. I will do the best I can to address reported vulnerabilities, but please be aware that there may be no fixed timeline or guarantee of a response. | ||
|
||
Users are recommended to use this project responsibly and at their own risk. |
12 changes: 12 additions & 0 deletions
12
prisma/migrations/20231206165640_add_preview_file_name/migration.sql
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
Warnings: | ||
- A unique constraint covering the columns `[previewMinioName]` on the table `File` will be added. If there are existing duplicate values, this will fail. | ||
- Added the required column `previewMinioName` to the `File` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "File" ADD COLUMN "previewMinioName" TEXT NOT NULL; | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "File_previewMinioName_key" ON "File"("previewMinioName"); |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- DropIndex | ||
DROP INDEX "File_minioName_key"; |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
Warnings: | ||
- A unique constraint covering the columns `[minioName]` on the table `File` will be added. If there are existing duplicate values, this will fail. | ||
*/ | ||
-- DropIndex | ||
DROP INDEX "File_previewMinioName_key"; | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "File_minioName_key" ON "File"("minioName"); |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "File" ALTER COLUMN "previewMinioName" DROP NOT NULL; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export const DEFAULT_DOLLAR_TO_COIN = 73; | ||
export const DEFAULT_COIN_TO_VND = 200; | ||
export const DEFAULT_BONUS_COIN_PER_100000_VND = 20; |
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,19 @@ | ||
import { Static, Type } from '@sinclair/typebox'; | ||
|
||
export const AcceptedExtensionDto = Type.Array(Type.String()); | ||
export const ServiceFeeDto = Type.Number(); | ||
export const CoinPerPageDto = Type.Number(); | ||
export const CoinPerSemDto = Type.Number(); | ||
export const DollarToCoinDto = Type.Number(); | ||
export const BonusCoinPer100000VndDto = Type.Number(); | ||
export const CoinToVNDDto = Type.Number(); | ||
export const MaxFileSizeDto = Type.Number(); | ||
|
||
export type AcceptedExtensionDto = Static<typeof AcceptedExtensionDto>; | ||
export type ServiceFeeDto = Static<typeof ServiceFeeDto>; | ||
export type CoinPerPageDto = Static<typeof CoinPerPageDto>; | ||
export type CoinPerSemDto = Static<typeof CoinPerSemDto>; | ||
export type DollarToCoinDto = Static<typeof DollarToCoinDto>; | ||
export type CoinToVNDDto = Static<typeof CoinToVNDDto>; | ||
export type BonusCoinPer100000VndDto = Static<typeof BonusCoinPer100000VndDto>; | ||
export type MaxFileSizeDto = Static<typeof MaxFileSizeDto>; |
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.