Hasty Paste, a fast and small paste app

insert image description here

What is Hasty Paste?

Hasty PasteIs a place to quickly paste text and share, mainly for sharing debug logs, etc., to help developers provide technical support. The project aims to be fast and small.

command line installation

Install it in Docker mode on Synology.

The official image is not published in docker hub, but in ghcr.io, so install it directly with the command line

3When Lao Su tossed at the beginning of the month, latestthe corresponding version was1.9.0

insert image description here

SSHExecute the following commands in sequence in the client

# 下载镜像
docker pull ghcr.io/enchant97/hasty-paste:latest

If you do not surf the Internet scientifically, you may not be able to pull it. You can try dockerthe proxy website: https://dockerproxy.com/ , but there will be a few more steps

# 如果拉不动的话加个代理  
docker pull ghcr.dockerproxy.com/enchant97/hasty-paste:latest
  
# 重命名镜像(如果是通过代理下载的)  
docker tag ghcr.dockerproxy.com/enchant97/hasty-paste:latest ghcr.io/enchant97/hasty-paste:latest
  
# 删除代理镜像(如果是通过代理下载的)  
docker rmi ghcr.dockerproxy.com/enchant97/hasty-paste:latest

If you are familiar with the command line, it may be docker clifaster to use

# 新建文件夹 hastypaste 和 子目录
mkdir -p /volume2/docker/hastypaste/data

# 进入 hastypaste 目录
cd /volume2/docker/hastypaste

# 修改 data 目录权限
chmod 777 ./data

# 运行容器
docker run -d \
   --restart unless-stopped \
   --name hasty-paste \
   -p 8113:8000 \
   -v $(pwd)/data:/app/data \
   ghcr.io/enchant97/hasty-paste:latest

You can also use docker-composethe installation, save the following content as docker-compose.ymla file

version: "3"

services:
  paste-bin:
    image: ghcr.io/enchant97/hasty-paste:latest
    container_name: hasty-paste
    restart: unless-stopped
    ports:
      - 8113:8000
    volumes:
      - ./data:/app/data

Then execute the following command

# 新建文件夹 hastypaste 和 子目录
mkdir -p /volume2/docker/hastypaste/data

# 进入 hastypaste 目录
cd /volume2/docker/hastypaste

# 修改 data 目录权限
chmod 777 ./data

# 将 docker-compose.yml 放入当前目录

# 一键启动
docker-compose up -d

run

Enter in the browser http://群晖IP:8113to see the main interface

insert image description here

Some netizens asked to pass seafilethe settings file before dtable_web_settings.py, so I will take this as an example

insert image description here

Once created, you can share

insert image description here

reference documents

enchant97/hasty-paste: A fast and minimal paste bin.
Address: https://github.com/enchant97/hasty-paste

Hasty Paste
address: https://enchantedcode.co.uk/hasty-paste/

Supongo que te gusta

Origin blog.csdn.net/wbsu2004/article/details/131736456
Recomendado
Clasificación