Giter Club home page Giter Club logo

betternote's Introduction

✨ betternote - Simple and secure one-time note sharing service

Docker

Screenshots

Screenshot (Not much to show off, right?)

Why?

Sometimes you just have to send that plain-text password to your friend or colleague, right? That's why this tool exists.

Server encrypts your data, saves it to Redis and you're left with one-time link with decryption key embedded into it!

Inspiration came from dnote project.

Stack

Made with dotnet, Redis, pure JS (with aes-js) and ❤️.

Deployment

Intended to be deployed with docker-compose. This repo has two deployment configs:

  • docker-compose.yml - default deployment example.
  • docker-compose-build.yml - deployment with build (latest version from source).

Deployment: HTTP vs HTTPS

You probably should deploy this service with a reverse proxy of some kind that will provide HTTPS. Hosting this page on HTTP will not only decrease security but also forces frontend to use outdated clipboard copy method.

Configuration

Environment variable Meaning Default value Comment
ASPNETCORE_ENVIRONMENT Server environment, better be left as it is. Production
ASPNETCORE_URLS Interface bind URL with port http://0.0.0.0:5000 Server will bind on all interfaces on port 5000.
RedisDatabaseId Redis database ID -1
RedisHost Redis hostname, without port (6379 expected) redis
SecretExpiryInMinutes Secret expiry time, in minutes 720 12 hours by default. Keep in mind that notes on your server are going to be burned after the first read. This sets expiry time for notes that weren't read.

Contribution

I would be glad! Please do.

Attribution

This project uses icon made by pictranoosa. Thank you!

betternote's People

Contributors

0x25cbfc4f avatar

Stargazers

 avatar Abhiram Gopal Dasika avatar Nandan avatar  avatar  avatar  avatar Pierce L avatar  avatar  avatar  avatar  avatar Fastidious avatar Elker avatar Johannes Schöneberger avatar  avatar  avatar Maksym Lisogorskyi avatar Steven Evans avatar  avatar vaskofo avatar Lars Nørgaard avatar

Watchers

 avatar

betternote's Issues

failed to solve: failed to read dockerfile

[+] Building 0.1s (2/2) FINISHED
 => [betternote internal] load .dockerignore                                                                                                                                                                                                                                                                            0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                                                                         0.0s
 => [betternote internal] load build definition from Dockerfile                                                                                                                                                                                                                                                         0.0s
 => => transferring dockerfile: 2B                                                                                                                                                                                                                                                                                      0.0s
failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1063389014/Dockerfile: no such file or directory

after copying your docker-compose, and starting the container:

$ docker compose start
service "redis" has no container to start

Client: Docker Engine - Community
Version: 24.0.5
API version: 1.43
Go version: go1.20.6
Git commit: ced0996
Built: Fri Jul 21 20:35:45 2023
OS/Arch: linux/amd64
Context: default

Server: Docker Engine - Community
Engine:
Version: 24.0.5
API version: 1.43 (minimum version 1.12)
Go version: go1.20.6
Git commit: a61e2b4
Built: Fri Jul 21 20:35:45 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.22
GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca
runc:
Version: 1.1.8
GitCommit: v1.1.8-0-g82f18fe
docker-init:
Version: 0.19.0
GitCommit: de40ad0

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.