1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00
Commit Graph

79 Commits

Author SHA1 Message Date
James Hillyerd
289b38f016 Add configurable base path for reverse proxy use (#169)
* ui: Refactor routing functions into Router record
* ui: Store base URI in AppConfig
* ui: Use basePath in Router functions
* backend: Add Web.BasePath config option and update routes
* Tweaks to get SPA to bootstrap basePath configured
* ui: basePath support for apis/serve
* ui: basePath support for message monitor
* web: Redirect requests to / when basePath configured
* doc: add basepath to config.md
* Closes #107
2020-08-09 15:53:15 -07:00
James Hillyerd
860045715c docker-run.sh: Update image repo 2020-06-28 11:02:49 -07:00
James Hillyerd
001e9fec58 Rollback #153 as it breaks storage volumes, closes #27 (#161)
Keeping tzdata pkg
2020-06-28 11:00:51 -07:00
Martijn Suijlen
3372ade61b Docker image should run non-root (#153)
Changed the Dockerfile so that there is a Inbucket user (and group). This will allow the container to be executed a the Inbucket user in stead of ROOT (security best practices)

If the user wants to use a different greeting.html file he can use the environment variable to define a different one. For now we just use the greeting.html from the defaults directory.

* Permissions for /start-inbucket.sh file
* Added timezone data so you can set the timezone in the image
* Updated Docker greeting.html file to include some basic instructions
* Updated to alpine 3.11
* Updated to golang 1.14
* Updated the required packages
2020-06-26 08:38:27 -07:00
James Hillyerd
321c5615a5 ui: Respect monitor visible config option 2018-12-31 15:10:33 -08:00
James Hillyerd
362ece171a webui: Add MIME errors to mailbox message 2018-12-28 10:28:36 -08:00
James Hillyerd
55e11929c7 travis: Eliminate travis-deploy.sh 2018-12-23 12:45:40 -08:00
James Hillyerd
92c89b98ee travis: Utilize build stages for deploy 2018-12-23 10:25:06 -08:00
James Hillyerd
efe554bd77 ui: build tweaks
- ignore ui/dist dir
- dev-start.sh prompts for npm instead of elm-app
2018-12-12 20:21:40 -08:00
James Hillyerd
9b3049562d ui: Display server configuration on status page 2018-12-09 16:23:15 -08:00
James Hillyerd
284dd70bc6 ui: minimal webpack 4 build w/ proxy & hot reload 2018-11-17 14:37:27 -08:00
James Hillyerd
8017e0ce57 docker: Update for elm UI artifacts 2018-11-12 22:05:48 -08:00
James Hillyerd
dd14fb9989 ui: Much elm work, such wow
- ui: Fix favicon
- webui: Changes to support serving Elm UI
- Static files now served from `/` mount point.
- Old UI handlers moved to `/serve` mount point, some will still be
  needed by the Elm UI; safe HTML and attachments for example.
- Update dev-start.sh for new UI, with tip on how to build it.
- ui: Detect browser host:port for websocket URL,
- webui: Remove unused mailbox handlers, rename routes
- Many routes not needed by Elm UI.
- `/serve/mailbox/*` becomes `/serve/m/*`.
- webui: Impl custom JSON message API for web UI,
- ui: Refactor Mailbox view functions,
- ui: Add body tabs for safe HTML and plain text,
- webui: Format plain text for new UI,
- ui: List attachments with view & download links,
2018-11-12 20:34:51 -08:00
James Hillyerd
30e3892cb0 webui, rest: Render UTF-8 addresses correctly, fixes #117 2018-10-22 18:29:03 -07:00
James Hillyerd
2f67a6922a ui: Update default greeting.html, closes #106. 2018-10-22 12:28:12 -07:00
James Hillyerd
f9adced65e docker: Update build to use Go 1.11+modules for #121
- Fix outdated params in docker-run.sh
2018-10-20 12:36:09 -07:00
James Hillyerd
7e71b4a42c Move swaks-tests into etc for #79 2018-04-07 17:22:44 -07:00
James Hillyerd
d846f04186 docker: Switch to multistage build, closes #66 2018-04-07 17:00:37 -07:00
James Hillyerd
8c66a24513 config: lowercase log levels for #90 2018-04-01 20:50:18 -07:00
James Hillyerd
c695a2690d ui: Mark messages as seen after 1.5s for #58
Embolden subject font for unseen messages.
2018-04-01 15:16:48 -07:00
James Hillyerd
e3be5362dc dev-start.sh: update TRACE to DEBUG 2018-04-01 13:30:01 -07:00
James Hillyerd
393a5b8d4e redhat: Use goreleaser to generate .rpm package for #89 2018-03-25 20:13:19 -07:00
James Hillyerd
0055b84916 debian: Use goreleaser to generate .deb package for #89 2018-03-25 19:34:51 -07:00
James Hillyerd
23dc357202 etc: Add dev-start.sh script for #86 2018-03-25 16:16:06 -07:00
James Hillyerd
86c8ccf9ea docker: Update for environment config for #86
- Change to default ports (less surprising)
- Drop `/con/` volume naming, never caught on
2018-03-25 15:39:04 -07:00
James Hillyerd
ce2339ee9c conf: Delete obsolete config files for #86 2018-03-25 14:30:34 -07:00
James Hillyerd
1f56e06fb9 docker: fix build for #79
- Build with Go 1.10
- install.sh: git fetch fails with ssh remotes, removed
2018-03-10 12:45:56 -08:00
James Hillyerd
de75b778c0 Only deploy with one version of Go 2017-12-24 13:37:47 -08:00
James Hillyerd
f4fadd7e44 Docker version will now fall back to commit if no tag 2017-12-18 19:12:47 -08:00
James Hillyerd
28b40eb94d Fetch tags during docker build 2017-12-18 19:12:32 -08:00
James Hillyerd
0f67e51e56 Fix version & date in Docker containers for #64 2017-12-18 19:11:08 -08:00
James Hillyerd
e6f95c9367 Make @inbucket prompt configurable, closes #31 2017-01-28 17:27:50 -08:00
James Hillyerd
9ae428ca44 Make monitor configurable for #44 2017-01-21 20:23:04 -08:00
James Hillyerd
61c6e7c2e9 Create systemd service unit file for #47
- Switch ubuntu from upstart to systemd
- Switch redhat from init.d to systemd
2017-01-05 05:29:21 +00:00
James Hillyerd
01ea89e7e2 Multi-recipient swaks test
- Add a multi-recipient test to run-tests.sh
- Removal accidental output of jq binary location when pretty-printing REST JSON
- Add To: change to CHANGELOG.md
- Fix comment typo
2016-09-18 17:48:21 -07:00
James Hillyerd
9821095977 Move homebrew to its own tap repository. 2016-03-21 20:08:31 -07:00
James Hillyerd
c421e4e0eb First attempt at a homebrew formula 2016-03-11 18:31:53 -08:00
James Hillyerd
0068937d58 Add homebrew specific inbucket.conf 2016-03-08 23:11:03 -08:00
James Hillyerd
bbfdd4216f Session cookie key is now configurable
- Added [web] cookie.auth.key to configuration
- Inbucket generates a random key if none is configured
- Added [default] default.domain to be reference by SMTP and POP3
  configs
- Updated default/sample config files
2016-02-27 15:43:44 -08:00
James Hillyerd
f36e21a65c REST APIv1 now uses lowercase JSON property names
- Updated rest-apiv1.sh to pretty print JSON with jq if available
- Fixed some missing checks on JSON testutils
2016-02-25 19:21:47 -08:00
James Hillyerd
b9535c126c Implement REST API v1
- Add rest package with REST-only controller, tests
- Remove individual shell scripts in favor of rest-apivh1.sh
2016-02-25 14:42:10 -08:00
James Hillyerd
f996fa2ae7 Docker best practices
- Install and remove OS and Go build deps in a single layer
- Use COPY instead of ADD
- WORKDIR now resolves ENV variables, use one
- Use VOLUMES for configuration and datastore
- Added launcher script start-inbucket.sh
- Made docker-run.sh more powerful
2016-02-23 22:09:39 -08:00
James Hillyerd
9fafbf73d0 Dockerfile now builds from golang:1.6-alpine 2016-02-22 21:10:48 -08:00
James Hillyerd
a2606a14f6 Update default greeting.html files 2016-02-22 20:11:39 -08:00
James Hillyerd
e6b7e335cb Follow meta-linter recommendations for all of Inbucket
- Rename BUILD_DATE to BUILDDATE in goxc
- Update travis config
- Follow linter recommendations for inbucket.go
- Follow linter recommendations for config package
- Follow linter recommendations for log package
- Follow linter recommendations for pop3d package
- Follow linter recommendations for smtpd package
- Follow linter recommendations for web package
- Fix Id -> ID in templates
- Add shebang to REST demo scripts
- Add or refine many comments
2016-02-22 00:16:45 -08:00
James Hillyerd
3b0d17867e Docker updates
- Build from official golang image
- Modernize docker build script
- Remove sudo from docker-run.sh, relocate
2015-08-23 23:39:07 -07:00
James Hillyerd
4d8aa340ff Make replace integral with bootstrap as default theme 2015-08-23 21:57:29 -07:00
James Hillyerd
f48704b6a6 Bootstrap navbar and message list 2015-08-16 23:05:13 -07:00
James Hillyerd
9ca1711252 Update website links 2014-05-25 21:51:55 -07:00
James Hillyerd
bb398498d4 More Docker work
- Dockerfile now builds Inbucket inside the container
- Add starter inbucket.conf for Docker
- Add install.sh to build inbucket inside container
- Add customized greeting.html for Docker
2014-05-25 16:10:05 -07:00