mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
6abee87aa3
- make builtin http handlers serve on specific domains, such as for mta-sts, so e.g. /.well-known/mta-sts.txt isn't served on all domains. - add logging of a few more fields in access logging. - small tweaks/bug fixes in webserver request handling. - add config option for redirecting entire domains to another (common enough). - split httpserver metric into two: one for duration until writing header (i.e. performance of server), another for duration until full response is sent to client (i.e. performance as perceived by users). - add admin ui, a new page for managing the configs. after making changes and hitting "save", the changes take effect immediately. the page itself doesn't look very well-designed (many input fields, makes it look messy). i have an idea to improve it (explained in admin.html as todo) by making the layout look just like the config file. not urgent though. i've already changed my websites/webapps over. the idea of adding a webserver is to take away a (the) reason for folks to want to complicate their mox setup by running an other webserver on the same machine. i think the current webserver implementation can already serve most common use cases. with a few more tweaks (feedback needed!) we should be able to get to 95% of the use cases. the reverse proxy can take care of the remaining 5%. nevertheless, a next step is still to change the quickstart to make it easier for folks to run with an existing webserver, with existing tls certs/keys. that's how this relates to issue #5.
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
# Before launching mox, run the quickstart to create config files for running as
|
|
# user the mox user (create it on the host system first, e.g. "useradd -d $PWD mox"):
|
|
#
|
|
# docker-compose run mox mox quickstart you@yourdomain.example $(id -u mox)
|
|
#
|
|
# After following the quickstart instructions you can start mox:
|
|
#
|
|
# docker-compose up
|
|
|
|
version: '3.7'
|
|
services:
|
|
mox:
|
|
# Replace latest with the version you want to run.
|
|
image: docker.io/moxmail/mox:latest
|
|
environment:
|
|
- MOX_DOCKER=... # Quickstart won't try to write systemd service file.
|
|
# Mox needs host networking because it needs access to the IPs of the
|
|
# machine, and the IPs of incoming connections for spam filtering.
|
|
network_mode: 'host'
|
|
volumes:
|
|
- ./config:/mox/config
|
|
- ./data:/mox/data
|
|
# web is optional but recommended to bind in, useful for serving static files with
|
|
# the webserver.
|
|
- ./web:/mox/web
|
|
working_dir: /mox
|
|
restart: on-failure
|
|
healthcheck:
|
|
test: netstat -nlt | grep ':25 '
|
|
interval: 1s
|
|
timeout: 1s
|
|
retries: 10
|