// readme

Imagik

Pyazo, but fast. Imagik is a fast and lightweight fileserver, that

  • lets you access files by path
  • lets you access files by their Hash (MD5/SHA1/SHA2/SHA512)
  • lets you upload files with a very simple API

Running

Docker

Run the container like this:

docker run -p 8000:8000 -v "whatever directory you want to share":/share ghcr.io/beryju/imagik

Now you can access imagik on http://localhost:8000

Binary

Download a binary from GitHub and run it:

./imagik

Now you can access imagik on http://localhost:8000

Configuration

Example config file:

---
# secretKey: # Set this to the output of ./imagik generate-key
listen: localhost:8000
rootDir: ./root
authDriver: static # or null for no authentication or oidc
authStaticConfig:
  tokens:
    # Key is the username
    # Value is password hash generated by ./imagik hash-password
    test: "|2a|10|TanDKWLYO3LUS3SEyQGTz.L51M6cSJsLsK0wVEWl5lIK1XucTBQ8u" # test
# authOIDCConfig:
#   url: provider URL, which has a .well-known/openid-configuration
#   clientID: some-client-id
#   clientSecret: some-client-secret
#   redirect: URL which should beโ€ฆ