https://github.com/restuwahyu13/securing-upload
Tips & tricks to secure uploaded file/image sensitive.
https://github.com/restuwahyu13/securing-upload
caesar-cipher cipher encryption image-manipulation javascript nodejs typescript upload-file upload-images
Last synced: 3 months ago
JSON representation
Tips & tricks to secure uploaded file/image sensitive.
- Host: GitHub
- URL: https://github.com/restuwahyu13/securing-upload
- Owner: restuwahyu13
- Created: 2022-10-30T10:57:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T12:48:03.000Z (over 3 years ago)
- Last Synced: 2025-10-05T09:44:14.441Z (8 months ago)
- Topics: caesar-cipher, cipher, encryption, image-manipulation, javascript, nodejs, typescript, upload-file, upload-images
- Language: TypeScript
- Homepage:
- Size: 611 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Securing Upload File/Image Sensitive
Tips & tricks to secure uploaded file/image sensitive, this method work in all any programming language, for this example i use `NodeJs` for Back End and `ReactJs` for Front End, if you run app using docker run app first, before worker app and
dockerfile.worker metadata from must be match with images container name.
# Environtment Worker
```env
##################
# APP ENVIRONMENT
##################
PORT=4000
NODE_ENV=production
MAX_OLD_SPACE=32768
CRYPTO_SECRET_KEY=a505285292637a969305c9a3bd2d44d5a158b40e3b4b6bacc7333f906371767d
########################
# DATABASE ENVIRONMENT
########################
PG_HOST=localhost
PG_PORT=5432
PG_USER=admin
PG_PASSWORD=admin
PG_DBNAME=postgres
######################
# AWS S3 ENVIRONMENT
######################
S3_ACCESS_KEY='bacc7333f906371767d'
S3_SECRET_KEY='a969305c9a3bd2d44d'
S3_BUCKET_NAME='node'
S3_REGION='us‑east‑1'
############################
# MESSAGE BROKER ENVIRONMENT
############################
RABBITMQ_VHOST='/'
RABBITMQ_HOST=localhost
RABBITMQ_PROTOCOL=amqp
RABBITMQ_USERNAME=admin
RABBITMQ_PASSWORD=admin
RABBITMQ_PORT=5672
```