57 lines
1.7 KiB
JSON
57 lines
1.7 KiB
JSON
{
|
|
"addons": [
|
|
{
|
|
"plan": "heroku-postgresql",
|
|
"options": {
|
|
"version": "13"
|
|
}
|
|
}
|
|
],
|
|
"buildpacks": [
|
|
{
|
|
"url": "heroku/nodejs"
|
|
}
|
|
],
|
|
"description": "A configurable URL shortener",
|
|
"env": {
|
|
"API_KEY": {
|
|
"description": "API key used to protect some routes. If you leave this blank anyone will be able to shorten URLs.",
|
|
"required": false,
|
|
"generator": "secret"
|
|
},
|
|
"DATABASE_URL": {
|
|
"description": "URL or path to database. Leave this blank if you are using a Heroku add-on for your database.",
|
|
"required": false
|
|
},
|
|
"SHORT_LENGTH": {
|
|
"description": "Length of shortened IDs. Default is calculated based on length of SHORT_CHARS.",
|
|
"required": false
|
|
},
|
|
"SHORT_CHARS": {
|
|
"description": "JSON array of characters to used in shortened IDs. Default is alphanumeric (a-z, A-Z, 0-9).",
|
|
"required": false
|
|
},
|
|
"SHORT_REWRITES": {
|
|
"description": "JSON object of rewrites to normalize shortened IDs. Advanced use only.",
|
|
"required": false
|
|
},
|
|
"HOSTNAME": {
|
|
"description": "The hostname of this API instance. If you leave this blank users will be allowed to shorten URLs with the same hostname as your instance.",
|
|
"required": false
|
|
},
|
|
"SHORTENED_BASE_URL": {
|
|
"description": "The base URL to build shortened URLs from. If you leave this blank clients will have to assemble shortened URLs themselves.",
|
|
"required": false
|
|
},
|
|
"SENTRY_DSN": {
|
|
"description": "Sentry Data Source Name (DSN) https://docs.sentry.io/product/sentry-basics/dsn-explainer/",
|
|
"required": false
|
|
}
|
|
},
|
|
"keywords": ["URL Shortener", "Node.js"],
|
|
"logo": "https://avatars.githubusercontent.com/u/53232036",
|
|
"name": "Custom ZWS Instance",
|
|
"repository": "https://github.com/zws-im/zws",
|
|
"website": "https://docs.zws.im"
|
|
}
|