GithubHelp home page GithubHelp logo

sefinek24 / sharex-express-server Goto Github PK

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

Node.js project utilizing Express.js for hosting screenshots taken with ShareX.

Home Page: https://screenshots.sefinek.net

License: MIT License

JavaScript 100.00%
sharex sharex-host sharex-server sharex-upload sharex-uploader sharex-api sharex-cdn sharexuploader express express-js

sharex-express-server's Introduction

๐Ÿ“ท Sharex Express.js Server

This project allows for the launching of a local server, intended for hosting screenshots taken with the Sharex program.

โœ”๏ธ What does it include?

  • Configured CORS
  • Ready logger morgan
  • Ready middleware responsible for handling errors:
    • 429 Too Many Requests
    • 408 Request Timeout
    • 404 Not Found
    • 500 Internal Server Error
  • Static folder public
  • Blocking indexing of screenshots in the robots.txt file. Thanks to this, your screenshots will not be public.
  • Ready ecosystem.config.js file for PM2

๐Ÿค” What is this for?

With this solution, you don't have to upload screenshots to external services. Being an administrator, you can delete screenshots from the server with just a few clicks, thereby revoking everyone's access to the screenshot file.

โ˜๏ธ Cloudflare Integration

  • For those utilizing Cloudflare, enhancing your security measures by incorporating specific expressions into the Web Application Firewall (WAF) comes highly recommended. This approach can significantly bolster your website's defense. Please visit this repository.

  • If you are using any proxy server (for example, Cloudflare), make sure to adjust the trust proxy setting in the index.js file. A value of 1 indicates a single proxy server. This adjustment is necessary for the server to accurately read the IP addresses of visitors.

๐Ÿ“ How to use?

  1. Clone the repository:
    git clone https://github.com/sefinek24/sharex-express-server.git
  2. Install the necessary packages using npm install.
  3. Rename the .env.default file to .env and fill in the necessary data.
  4. Run the server using node ..
  5. Hosting:
    • At home (if you lack open ports or an external IP)
      See Cloudflare Tunnel Documentation. Remember, your domain must have Cloudflare DNS settings (at least that's what I believe).
  6. File server:
    • SAMBA
      See this tutorial.
  7. Configuration:
    • Windows
      windows.png
    • Sharex
      sharex-smb.png
      paths.png
  8. That's it! You can now take screenshots and upload them to your server.

๐Ÿ’™ Thank you

If you find this repository useful, please consider giving it a star. If you need assistance or have any questions, feel free to open a new Issue.

๐Ÿ“‘ License

This project is licensed under the MIT License.

sharex-express-server's People

Contributors

dependabot[bot] avatar sefinek24 avatar

Stargazers

 avatar

Watchers

 avatar

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.