Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .env.local_dev
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,19 @@ USE_LOCAL=true
MAILGUN_API_KEY=
MAILGUN_DOMAIN=mail.yourdomain.com
[email protected]
#SMTP_ENABLE=true
#SMTP_HOST=smtp.yourhost.com
#SMTP_PORT=443
#[email protected]
#SMTP_PASS=password # if your password includes spaces then write password in single quotes ('asdf pasd asdf bgds').

### === Mail Configuration (Local Dev) ===
SMTP_ENABLE=true
SMTP_HOST=smtp.yourhost.com
SMTP_PORT=443
[email protected]
SMTP_PASS=password # if your password includes spaces then write password in single quotes ('asdf pasd asdf bgds').
SMTP_HOST=maildev
SMTP_PORT=1025
SMTP_USER=
SMTP_PASS=
SMTP_USER_EMAIL="OpenSign Local <[email protected]>"


# Base64 encoded PFX or p12 document signing certificate file *********************************************************************************************************************
Expand Down
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,38 @@ Please refer to the [Installation Guide](https://docs.opensignlabs.com/docs/self

---

### Local Development (Maildev)

For local development and testing, OpenSign supports a Maildev SMTP server for safe email testing. This is enabled automatically by the included `docker-compose.override.yml` and `.env.local_dev` files.

**Quick start:**
```bash
docker compose up
```
- This will start the app, MongoDB, and Maildev (web UI at http://localhost:1080).
- All emails (password reset, verification, etc.) will appear in the Maildev UI and are never sent to real addresses.
- The server and client containers will use `.env.local_dev` for configuration.

**To build from local source (for contributors):**
Uncomment the `build:` blocks in `docker-compose.override.yml` for `server` and `client`, then run:
```bash
docker compose up --build
```

**Environment switching:**
- For production, use `.env.prod` and do not use the override file.
- For local dev, use `.env.local_dev` and the override (default behavior).

---

### Production/CI

- For production deployments, use the published images and `.env.prod` with real SMTP or Mailgun credentials.
- Do not include the `maildev` service or override file in production.
- See the [Installation Guide](https://docs.opensignlabs.com/docs/self-host/docker/run-locally/) for more details.

---

### Usage

For comprehensive guidelines on how to use OpenSign™, please consult our [User Manual](USAGE.md).
Expand Down
Loading