A secure and user-friendly Flask-based file hosting application with Docker support.
148
The File Hosting project is a Flask-based web application designed to facilitate the secure upload, storage, and management of files. It offers a user-friendly interface for users to upload, view, and delete files, making it an ideal solution for personal or small-scale file hosting needs.
To begin using this application, clone the repository using the following command:
git clone https://github.com/rajeshprasanth/file-hosting.git
cd file-hosting
Depending on your setup, you may choose one of the following installation methods:
pip install -r requirements.txt
python app.py
http://localhost:5000python -m venv venv
source venv/bin/activate # On Windows: `venv\Scripts\activate`
pip install -r requirements.txt
python app.py
http://localhost:5000docker compose -f docker-compose.local.yml up -d
-d).docker logs -f <container_id>
http://localhost:5000docker compose -f docker-compose.remote.yml up -d
docker compose -f docker-compose.remote.yml pull
docker compose -f docker-compose.remote.yml up -d --force-recreate
http://localhost:5000docker compose down
docker compose up -d --build
docker ps
volumes:
- ./uploads:/app/uploads
environment:
- UPLOAD_FOLDER=/app/uploads
- SECRET_KEY=supersecretkey
UPLOAD_FOLDER: Specifies the directory for storing uploaded files.SECRET_KEY: Used by Flask for session management and security.ports:
- "5001:5000"
http://localhost:5001.Contributions are welcome! If you would like to enhance the project, please submit a pull request or open an issue.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details. See the LICENSE file for details. Thank you for using the File Hosting application!
Content type
Image
Digest
sha256:74b6bb372…
Size
49.1 MB
Last updated
over 1 year ago
docker pull rajeshprasanth/file-hosting