/web-note

A fork of minimalist-web-notepad with a little modification.

Primary LanguageJavaScript

Web-Note

🔗 Wiki: Lincest/web-note/wiki/web-note-wiki

white dark

1. Self Host

docker-compose.yml:

version: "3"
services:
  web-note:
    image: ghcr.io/lincest/web-note:latest
    container_name: web-note
    restart: always
    ports:
     - "80:80"
    volumes:
     - ./data:/var/www/html/_tmp
    # environment: (optional)
    #  FILE_LIMIT: 100000 # the number of files limit (default: 100000)
    #  SINGLE_FILE_SIZE_LIMIT: 102400 # single file size limit, unit: byte (default: 102400)

2. From Source

to build your image from source code, just clone this repo and use docker-compose up --build in the source code directory.

3. Commandline Usage

# push a message
$ curl --data "text=hello world" https://mmmm.tech/123

# pull a message
$ curl https://mmmm.tech/123
hello world%

4. Copyright and license

this project is forked from: minimalist-web-notepad

Copyright 2012 Pere Orga pere@orga.cat

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.