gofali

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 17 Imported by: 0

README

Gofali

A simple URL shortener written in Go.

Gofali img

Run

  1. Grab the latest release
  2. Create config.ini
  3. Run gofali-<platform> -config config.ini

Configuration

You can configure the application using flags or a config.ini file. Below are the available options:

Flags
Flag Default Value Description
-host 127.0.0.1 Server host
-port 8080 Server port
-mysql-connect gofali:gofali@tcp(127.0.0.1:3306)/gofali MySQL connection string
-admin-path admin Admin path (example.com/@admin/)
-root-redirect (empty) Redirect path for the root URL
-slug-length 8 Length of the generated slug
Example config.ini
host = 127.0.0.1
port = 8080

mysql-connect = gofali:gofali@tcp(127.0.0.1:3306)/gofali

admin-path = BnTiC5DZ3L
root-redirect = https://google.com
slug-length = 16

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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