Crates.io | karton |
lib.rs | karton |
version | 2.0.1 |
source | src |
created_at | 2023-03-05 15:10:53.81308 |
updated_at | 2023-03-10 07:42:39.940593 |
description | Simple, performant, configurable, entirely self-contained Pastebin and URL shortener. |
homepage | https://gitlab.com/obsidianical/microbin |
repository | https://gitlab.com/obsidianical/microbin |
max_upload_size | |
id | 801503 |
size | 1,814,395 |
A small, rusty pastebin with URL shortener functionality.
The github repository is a mirror of this gitlab repository.
This is a fork of MicroBin.
Karton is available on Docker hub, crates.io and using the nix flake.
The only "officially supported" (I will actively debug and search for the problem) method is the last one using nix flakes.
Add the repository to your inputs.
karton.url = "git+https://gitlab.com/obsidianical/microbin.git";
# microbin.nix
{ inputs, config, pkgs, ... }:
{
environment.systemPackages = [ inputs.karton.defaultPackage."x86_64-linux" ];
systemd.services.karton = {
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
environment = {
# set environment variables to configure karton
KARTON_HASH_IDS = "";
KARTON_EDITABLE = "";
KARTON_PRIVATE = "";
KARTON_HIGHLIGHTSYNTAX = "";
# adjust this to your domain
KARTON_PUBLIC_PATH = "https://example.org";
KARTON_QR = "";
# configure endpoints to be shorter
KARTON_URL_EP = "u";
KARTON_RAW_EP = "r";
KARTON_PASTA_EP = "p";
};
script = "${inputs.karton.defaultPackage."x86_64-linux"}/bin/karton";
# register a simple systemd service
serviceConfig = {
Type = "simple";
RootDirectory="/";
WorkingDirectory = "/karton";
};
};
}
This is only a rough time guide for what to get done by which version, nothing fixed.
This fork of MicroBin was created by Schrottkatze.
Join the matrix room to chat!
Contact me via e-mail at contact@schrottkatze.de.