add version to ping endpoint, tweak README

This commit is contained in:
2024-03-17 06:13:02 -06:00
parent dbcbad95a4
commit e878665943
2 changed files with 4 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ mkdir uploads
pnpm run migrate pnpm run migrate
``` ```
Now set up an AWS S3 bucket & Infura project, and manually set these variables inside a .env file: Now set up an S3 bucket & Infura project, and create a .env file from .env.sample with these important settings:
``` ```
AWS_ACCESS_KEY= AWS_ACCESS_KEY=
AWS_SECRET_KEY= AWS_SECRET_KEY=
@@ -22,8 +22,6 @@ AWS_REGION=
INFURA_PROJECT_ID= INFURA_PROJECT_ID=
``` ```
If you use a domain with a web redirect, use a permanent redirect (since browsers complained with PR_END_OF_FILE_ERROR about a secure connection when it's temporary).
## dev ## dev
``` ```
@@ -45,9 +43,9 @@ JWT=`node -e "$CODE"`; curl -X DELETE -H "Authorization: Bearer $JWT" http://loc
* In object storage, set up bucket and erase any test data. * In object storage, set up bucket and erase any test data.
* In DNS, set a permanent web forward to the correct storage location. * In haproxy, set a permanent web forward to the correct storage location.
## deploy to prod subsequent times ## deploy to prod subsequent times
* Add CHANGELOG.md entry. * Add CHANGELOG.md entry. Update version in server.js file.

View File

@@ -54,7 +54,7 @@ const uploadDir = 'uploads';
const uploadMulter = multer({ dest: uploadDir + '/' }); const uploadMulter = multer({ dest: uploadDir + '/' });
app.get('/ping', async (req, res) => { app.get('/ping', async (req, res) => {
res.send('pong'); res.send('pong v1.0.0');
}); });
app.get('/image-limits', async (req, res) => { app.get('/image-limits', async (req, res) => {