Categorygithub.com/coolguy1771/wastebin
repository
0.3.0
Repository: https://github.com/coolguy1771/wastebin.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Wastebin

Wastebin is a self hosted web service that allows you to share pastes anonymously. Wastebin was designed to be stateless and uses the following tech stack

ComponentFramework
BackendFiber
DatabasePostgreSQL
FrontendSvelte

Configuration

Environment VariableDescriptionDefaultRequired
WASTEBIN_WEBAPP_PORTThe port wastebin will listen on3000
WASTEBIN_DB_USERThe user to use when connecting to a databasewastebin
WASTEBIN_DB_HOSTThe hostname or ip address of the datase to connect tolocalhost
WASTEBIN_DB_PORTThe port to connect to the database on5432
WASTEBIN_DB_PASSWORDThe password to connect to the database with
WASTEBIN_DB_NAMEThe name of the database to usewastebin
WASTEBIN_DB_MAX_IDLE_CONNSThe maximum number of idle connections to use10
WASTEBIN_DB_MAX_OPEN_CONNSThe maximum number of connections the database can have50
WASTEBIN_DEVDisables postgres database support and uses a sqlite databasefalse

Running Wastebin

To run wastebin either use a docker-compose file like the one listen below or a docker run command

version: '3'

services:
  wastebin:
    image: ghcr.io/coolguy1771/wastebin:0.0.1
    restart: always
    environment:
      - WASTEBIN_WEBAPP_PORT=3000  # Optional, Defaults to 3000
      - WASTEBIN_DB_USER="wastebin" # Optional, Defaults to wastebin
      - WASTEBIN_DB_PORT=5432 # Optional, Defaults to 5432
      - WASTEBIN_DB_PASSWORD="mysecretpassword"
      - WASTEBIN_DB_NAME=wastebin # Optional, defaults to wastebin
      - WASTEBIN_DB_MAX_IDLE_CONNS=10 # Optional, defaults to 10
      - WASTEBIN_DB_MAX_OPEN_CONNS=50 # Optional, defaults to 50
      - WASTEBIN_DEV=false # Use this to use a local sqlite database, if you want persistance you will need to specify a volume
    ports:
      - "3000:3000"
  postgres:
    image: postgres:14.7
    restart: always
    enviorment:
      - POSTGRES_PASSWORD="mysecretpassword"
      - POSTGRES_USER="wastebin"
      - POSTGRES_DB="wastebin"
    ports:
      - "5432:5432"

Bugs and Suggestion

If you find a bug or have a suggestion, please open an issue or pull request