https://github.com/batteredbunny/imagehost
Simple imagehost written in Go
https://github.com/batteredbunny/imagehost
filehost imagehost
Last synced: 10 months ago
JSON representation
Simple imagehost written in Go
- Host: GitHub
- URL: https://github.com/batteredbunny/imagehost
- Owner: BatteredBunny
- Created: 2021-10-30T19:17:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-07T10:57:46.000Z (about 2 years ago)
- Last Synced: 2025-02-05T23:02:42.625Z (over 1 year ago)
- Topics: filehost, imagehost
- Language: Go
- Homepage: https://keyed.sh
- Size: 203 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Imagehost
Simple imagehost written in Golang
Main page | Account page | Admin page
:-------------------------:|:-------------------------:|:-------------------------:
 |  | 
# 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
```nix
inputs = {
imagehost.url = "github:BatteredBunny/imagehost";
};
```
```nix
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
```