Skip to content

BatteredBunny/imagehost

Repository files navigation

Imagehost

Simple imagehost written in Golang

Main page Account page Admin page
CleanShot 2025-06-22 at 17 58 36@2x CleanShot 2025-06-22 at 17 59 34@2x CleanShot 2025-06-22 at 18 00 01@2x

Features

  • Easy social login via github
  • Account invite codes for enrolling new users
  • Image automatic deletion
  • Seperate upload tokens for automation setups (e.g scripts)
  • Store data locally or on a S3/B2 bucket
  • Sqlite and postgresql support
  • View tracking

Usage

Deploy the service with either the nixos module or docker-compose then configure the service.

Have a look at the example configs in examples/

Config reference

TODO

Setup

Setup with nixos module

inputs = {
    imagehost.url = "github:BatteredBunny/imagehost";
};
imports = [ inputs.imagehost.nixosModules.default ];

services = {
    imagehost = {
        enable = true;
        createDbLocally = true;
        settings.database_type = "postgresql";
    };

    postgresql.enable = true;
};

Setup with docker

Have a look at docker-compose.yml

Development

Dev setup with docker

Theres a docker-compose.yml config for setting up the service with postgresql

docker compose up --build
# Then visit http://localhost:8080

About

Simple imagehost written in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •