GithubHelp home page GithubHelp logo

amir16yp / imgbkp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14 KB

A self hosted Imgur-like web application designed for a single user to share images and videos

License: The Unlicense

Python 62.21% Shell 15.15% CSS 11.23% HTML 11.41%

imgbkp's Introduction

imgbkp

A self hosted Imgur-like web application designed for a single user to share images and videos.
IMGBKP is a self-hosted web application that allows a single user to securely host their images and videos. While uploading is restricted to those with the password, anyone can view the images and videos once they are uploaded.

Features

  • Image and Video Hosting: You can easily upload and host your images and videos on your own server.
  • Basic Authentication: To ensure security, the application uses basic HTTP authentication. Only users with the correct username and password can upload files.
  • File Metadata: IMGBKP records metadata about each uploaded file, including the file's name, MIME type, size, and upload timestamp.
  • Public Access: Anyone can view the images and videos you've uploaded without needing authentication.

Installation

To simplify the installation process, we provide an installation script. Follow these steps to set up IMGBKP:

  1. Clone the repository to your server:

        git clone https://github.com/amir16yp/imgbkp.git
        cd imgbkp
    
  2. Install the required python libraries

        pip install -r requirements.txt
    
  3. Make the installation script executable:

        chmod +x install.sh
    
  4. Run the installation script:

        ./install.sh
    
  5. Follow the prompts to provide the required information, such as username, password, host, and port.

  6. The script will generate a systemd service file, copy it to the systemd directory, enable the service, and optionally start the service.

Command-Line Arguments

You can configure the IMGBKP application using the following command-line arguments when starting the app:

  • --username: Specifies the username for basic authentication (default: `admin`).
  • --password: Specifies the password for basic authentication (default: `admin`).
  • --host: Specifies the host IP address (default: `0.0.0.0`).
  • --port: Specifies the port for the Flask application (default: `8833`).

Example usage:

    python imgbkp.py --username your\_username --password your\_password --host your\_host --port your\_port

Usage

  1. Uploading Files:

- Access the admin panel by navigating to the `/bkp/` URL of the IMGBKP app.
- Log in using the provided username and password.
- You can upload images and videos using two methods:

  • Local Upload: Choose a file from your device.
  • URL Upload: Provide the URL of an image or video hosted elsewhere on the internet.

- Uploaded files are saved on your server and can be accessed later.

  1. Viewing Files:

- You can view a list of the uploaded images and videos if you are logged in - Uploaded files are listed along with their metadata, and download links are provided.
- Please note that only those you shared a file's link with can view it.

Configuration

You can change the username, password, host, and port by using the command-line arguments as mentioned above.

License

This project is open-source and available under the Unlicense License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.