Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
feat(/service/info): add service description
Browse files Browse the repository at this point in the history
  • Loading branch information
GGORG0 committed Jul 17, 2022
1 parent c550cdd commit 947d0e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
DATABASE_URL="postgresql://postgres:password@localhost:5432/sharx?schema=public"
CUSTOM_HOST_NAME=SharX
CUSTOM_HOST_DESCRIPTION=An open-source image host and more
IMAGE_STORAGE_DIR=data/images
PORT=8080
JWT_SECRET=very-insecure-secret
Expand Down
1 change: 1 addition & 0 deletions src/routes/serviceRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ router.get("/info", (req, res) => {
semver: tag.substring(1).split("-")[0].split(".").map(x => parseInt(x)),
},
name: process.env.CUSTOM_HOST_NAME || "SharX",
desc: process.env.CUSTOM_HOST_DESCRIPTION || "An open-source image host and more",
};
});
});
Expand Down

0 comments on commit 947d0e1

Please sign in to comment.