mailpot/web
Manos Pitsidianakis c29a545326
Bump version to 0.1.0
2023-04-28 20:46:04 +03:00
..
src web: add entry.html template 2023-04-28 20:46:01 +03:00
.gitignore web: Add zstd compression feature for HTML templates 2023-04-24 19:42:15 +03:00
Cargo.toml Bump version to 0.1.0 2023-04-28 20:46:04 +03:00
README.md web: add SITE_SUBTITLE setting 2023-04-28 18:47:37 +03:00
build.rs web: add thread replies to post view 2023-04-28 09:10:46 +03:00

README.md

mailpot web server

cargo run --bin mpot-web -- /path/to/conf.toml

By default on release builds templates are compressed with zstd and bundled in the binary.

You can disable this behavior by disabling the zstd feature: cargo build --release --no-default-features

Configuration

By default, the server listens on 0.0.0.0:3000. The following environment variables can be defined to configure various settings:

  • HOSTNAME, default 0.0.0.0.
  • PORT, default 3000.
  • PUBLIC_URL, default lists.mailpot.rs.
  • SITE_TITLE, default mailing list archive.
  • SITE_SUBTITLE, default empty.
  • ROOT_URL_PREFIX, default empty.
  • SSH_NAMESPACE, default lists.mailpot.rs.