https://github.com/olillin/urlshortener
https://github.com/olillin/urlshortener
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/olillin/urlshortener
- Owner: olillin
- License: mit
- Created: 2023-12-14T15:51:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-14T21:10:49.000Z (over 2 years ago)
- Last Synced: 2025-10-12T04:09:27.436Z (10 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# URL Shortener
A webservice to generate and host shortened urls.
## Environment variables
This project uses [dotenv](https://www.npmjs.com/package/dotenv) to load environment variables and can be configured in the `.env` file.
| Name | Description | Default |
| ------------------- | ----------------------------------- | ---------------------------------------------- |
| `PORT` | Port the website will listen on. | `80` when using HTTP or `443` when using HTTPS |
| `CERT_PATH` | File path to SSL certificate. | `cert.pem` |
| `KEY_PATH` | File path to SSL private key. | `key.pem` |
| `SECRET` | Used as a global salt when hashing. | `secret` |
| `ENCRYPTION_IV` | The [initialization vector](https://wikipedia.org/wiki/Initialization_vector) used for encryption. | ` ` |
| `IDENTIFIER_LENGTH` | Length of the random identifier for shortened URLs. | `6` |