You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| BWP_ENABLE_SSL | false | N |[true/false] See warning below. |
53
-
| BWP_PORT | 5701 |Y|[0-65536]This will determine the port your self-hosted instance will be accessible from.|
53
+
| BWP_PORT | 5701 |N|[0-65536]Only required if you don't use a reverse proxy. |
54
54
| BWP_DOMAIN | localhost | N |[example.com] This will be the domain your self-hosted instance will be accessible from. It is important it matches for everything to work correctly. |
55
55
| BWP_DB_PROVIDER || N |[mssql/sqlserver/] Defaults to using Sqlite if not set |
56
56
| BWP_DB_SERVER || N | For any non-file hosted database, enter its domain name. Required for Microsoft SQL Server. |
@@ -63,85 +63,198 @@ By default, the container will use Sqlite if nothing else is specified. The data
63
63
:::warning
64
64
Setting SSL with `BWP_ENABLE_SSL` is required in [insecure contexts](https://w3c.github.io/webappsec-secure-contexts/#secure-contexts). Running the container locally on 'localhost' is considered a secure context.
65
65
66
+
If you are using a load balancer or reverse proxy, you can leave it set to false and handle SSL termination there.
67
+
66
68
Read the 'WebAuthn' specification here: [See specification](https://www.w3.org/TR/webauthn-2/#web-authentication-api).
67
69
:::
68
70
69
71
## E-mail
70
72
71
73
Email is used by Passwordless Admin Console to notify administrators of changes to their organization. This is specifically useful for verifying administrators when first signing up.
72
74
73
-
By default, all e-mail communication is written to a file for each application.
74
-
75
-
-`/app/Admin/mail.md`
76
-
-`/app/Api/mail.md`
75
+
By default, all e-mail communication is written to a file:
77
76
78
-
When using the default configuration, the following commands will output the contents of each file.
77
+
-`/app/mail.md`
79
78
80
-
For Admin Console:
79
+
When using the default configuration, the following command will output the contents of the file.
Reference: [Configuration in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0)
88
+
89
+
What is important is to configure ‘Mail.From' as shown below. This is required to have a fallback e-mail address to send e-mails from. On the 'Mail.Providers’ is an array, which is an ordered list of e-mail providers that we will attempt to execute in order if they fail. To configure an e-mail provider, see the sub sections below.
"TrustServer": true/false // skips SSL certificate validation when set to `true`.
150
+
}
151
+
```
152
+
153
+
Example with SendGrid:
154
+
155
+
```json
156
+
{
157
+
"Name": "smtp",
158
+
"Host": "smtp.sendgrid.net",
159
+
"Port": 465,
160
+
"Username": "apikey",
161
+
"Password": "<your-sendgrid-api-key>",
162
+
"StartTls": false,
163
+
"Ssl": true,
164
+
"SslOverride": false,
165
+
"TrustServer": true
166
+
}
167
+
```
168
+
169
+
### Environment variables
170
+
171
+
Reference: [Configuration in ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0)
172
+
173
+
<!-- prettier-ignore -->
174
+
What is important is to configure ‘Mail__From' as shown below. This is required to have a fallback e-mail address to send e-mails from. On the 'Mail__Providers’ is an array, which is an ordered list of e-mail providers that we will attempt to execute in order if they fail. To configure an e-mail provider, see the sub sections below.
175
+
176
+
Arrays start at zero so we configure AWS to be the first in line to attempt to send e-mails from, if that fails, we fall back to SendGrid.
0 commit comments