Temp-Image-Holder is a simple Node.js application for uploading and temporarily storing compressed images. The application uses HTTPS and generates short, unique IDs for each uploaded image.
- Secure connection using HTTPS and SSL
- Short, unique IDs for accessing images
- Simple and responsive UI for uploading images
- Images stored in compressed form
- Original image gets deleted after the compressed image is made
- Images are automatically deleted after 10 minutes
- Configurable settings in
config.json
- Node.js
- npm
- Clone the repository:
git clone https://github.com/CitroenGames/Temp-Image-Holder.git
- Navigate to the project directory:
cd Temp-Image-Holder
- Install the required dependencies:
npm install
- Create the required directories for storing uploaded and compressed images:
mkdir uploads
mkdir compressed
-
Add your SSL certificate, private key, and certificate authority files to the project directory.
-
Update the
config.json
file with the appropriate settings:
port
: The port number the server will listen onssl
: The paths to your SSL certificate, private key, and certificate authority files
{
"port": 8443,
"ssl": {
"key": "path/to/your/private-key.pem",
"cert": "path/to/your/certificate.pem",
"ca": "path/to/your/certificate-authority.pem"
}
}
Start the server:
node app.js
Visit the application in your browser at https://localhost:<port>
, replacing <port>
with the port number specified in your config.json
file.
This project is licensed under the MIT License. See the LICENSE file for details.