Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

The engine of image hosting written in Rust.

License

NotificationsYou must be signed in to change notification settings

langyo/0721

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clippy workflowGitHub LicenseGitHub Tag

Ciallo~(∠·ω< )⌒★

A simple engine for image hosting written in Rust.

Features

  • Image hosting
  • Automatic image compression via WebP
  • Basic account system
  • Internationalization
  • Deploy via Docker
  • Written in pure Rust

Deploy

docker run -d -p 8080:80 -v image-cache:/home/cache ghcr.io/langyo/0721:latest

Configuration

You can configure the engine viaConfig.toml in the docker volume.

If you want to change the configuration, you might need to enter the container via the other image:

docker run -it --rm -v image-cache:/home busybox:latest

Then you can edit theConfig.toml in the/home directory by usingvi.

After that, you can restart the container to apply the new configuration:

docker restart<container_id>
[portal]# The site's titletitle-suffix ="Ciallo~(∠·ω< )⌒★"# The banner in the footerfooter-banner = [    {text ="© 0721 project",url ="https://github.com/langyo/0721" },]# The default language of the sitelanguage ="zh_hans"# The timezone of the server, it will affect the images' timeline pagetimezone =+8[router]# The entry path of the imagesmedia-entry-path ="/media"# If it's empty, it means no limitlimit-referrer-host = [][upload]# Allow to use "KiB", "MiB" as unit, or pure number string as bytesimage-size-limit ="8MiB"# If it's true, the uploaded image will be converted to WebP format automaticallywebp-auto-convert =true# If it's true, the uploaded image will keep the original file's nameuse-source-file-name =false

JWT secret key can be configured via the environment variableJWT_SECRET.

You can configure it via the additional command line argument-e JWT_SECRET=your_secret_key for thedocker run command.

The default user isadmin and the password isadmin too. Modification of username and password is currently not supported. If operations are required, please create new users and delete old users. Subsequent versions will improve this capability.

Debug

You needs to installcargo-make andwasm-bindgen-cli first.

cargo install cargo-makecargo install wasm-bindgen-cli@0.2.95

cargo make dev

About

The engine of image hosting written in Rust.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

[8]ページ先頭

©2009-2025 Movatter.jp