mailpot/web
Manos Pitsidianakis 9ceb11c761
web: Add zstd compression feature for HTML templates
2023-04-24 19:42:15 +03:00
..
src web: Add zstd compression feature for HTML templates 2023-04-24 19:42:15 +03:00
.gitignore web: Add zstd compression feature for HTML templates 2023-04-24 19:42:15 +03:00
Cargo.toml web: Add zstd compression feature for HTML templates 2023-04-24 19:42:15 +03:00
README.md web: Add zstd compression feature for HTML templates 2023-04-24 19:42:15 +03:00
build.rs web: Add zstd compression feature for HTML templates 2023-04-24 19:42:15 +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.
  • ROOT_URL_PREFIX, default empty.
  • SSH_NAMESPACE, default lists.mailpot.rs.