owntickets

command module
v0.0.0-...-a19e32c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2021 License: MIT Imports: 7 Imported by: 0

README

OwnTickets

A personal ticketing system that's simple to use and deploy.

It is limited to a single admin user by default. Ticket creation can be either public, or limited by a password.

NOT YET IN A WORKING STATE

Setup

  1. Download the binary from the Releases page (TODO: put binaries there).
  2. Make sure it is executable (chmod +x owntickets)
  3. Hash the admin password using ./owntickets hash-password
  4. If you want the ticket creation page to be password protected, hash that password too
  5. Create a config (see below)
  6. Run ./owntickets serve (or ./owntickets serve -c=config.json)

Configuration

There are two ways to configure OwnTickets: it can either take it's configuration from a JSON file, or from the environment. If a value is specified both in JSON and environment, the one from the environment is used.

JSON config:

{
    "database": "<path to the sqlite3 database file>",
    "passwordHash": "<bcrypt admin password hash>",
    "requirePasswordForTicketCreation": true,
    "ticketCreationPasswordHash": "<bcrypt ticket creation password hash>"
}

environment:

OWNTICKETS_DATABASE="./sqlite3.db"
OWNTICKETS_PASSWORD_HASH="hash"
OWNTICKETS_REQUIRE_PASSWORD="yes/no" # require password for ticket creation
OWNTICKETS_TICKET_PASSWORD_HASH="hash"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL