mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
* 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
36 lines
1.1 KiB
Bash
Executable File
36 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
# dev-start.sh
|
|
# description: Developer friendly Inbucket configuration
|
|
|
|
export INBUCKET_LOGLEVEL="debug"
|
|
export INBUCKET_SMTP_REJECTDOMAINS="bad-actors.local"
|
|
#export INBUCKET_SMTP_DEFAULTACCEPT="false"
|
|
export INBUCKET_SMTP_ACCEPTDOMAINS="good-actors.local"
|
|
export INBUCKET_SMTP_DISCARDDOMAINS="bitbucket.local"
|
|
#export INBUCKET_SMTP_DEFAULTSTORE="false"
|
|
export INBUCKET_SMTP_STOREDOMAINS="important.local"
|
|
export INBUCKET_WEB_TEMPLATECACHE="false"
|
|
export INBUCKET_WEB_COOKIEAUTHKEY="not-secret"
|
|
export INBUCKET_WEB_UIDIR="ui/dist"
|
|
#export INBUCKET_WEB_MONITORVISIBLE="false"
|
|
#export INBUCKET_WEB_BASEPATH="prefix"
|
|
export INBUCKET_STORAGE_TYPE="file"
|
|
export INBUCKET_STORAGE_PARAMS="path:/tmp/inbucket"
|
|
export INBUCKET_STORAGE_RETENTIONPERIOD="3h"
|
|
export INBUCKET_STORAGE_MAILBOXMSGCAP="300"
|
|
|
|
if ! test -x ./inbucket; then
|
|
echo "$PWD/inbucket not found/executable!" >&2
|
|
echo "Run this script from the inbucket root directory after running make." >&2
|
|
exit 1
|
|
fi
|
|
|
|
index="$INBUCKET_WEB_UIDIR/index.html"
|
|
if ! test -f "$index"; then
|
|
echo "$index does not exist!" >&2
|
|
echo "Run 'npm run build' from the 'ui' directory." >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec ./inbucket $*
|