@softvisio/core
Version:
Softisio core
128 lines (90 loc) • 3.01 kB
YAML
dependencies:
- publicHttpServer
- dbh
- users
- actionTokens
- notifications
- acl
- monitoring
optionalDependencies:
- cluster
templates:
# api/password-changed
api/password-changed/subject: !l10nt Password changed
api/password-changed/body: !l10nt Your password was just changed.
# api/email-change-token
api/email-change-token/subject: !l10nt Email address change
api/email-change-token/body: !ejs |-
<%- locale.l10n( msgid`Use the following link to change your email address to ${data.email}:
${data.url}
This link is valid till ${data.tokenExpires.toISOString()}.
If you received this email by mistake just ignore it.
` ) %>
# api/email-changed
api/email-changed/subject: !l10nt Your email address was changed
api/email-changed/body: !ejs |-
<%- locale.l10n( msgid`Your email address was changed.
New email address: ${data.newEmail}
Old email address: ${data.oldEmail}
` ) %>
# api/confirm-email-token
api/confirm-email-token/subject: !l10nt Confirm your email address
api/confirm-email-token/body: !ejs |-
<%- locale.l10n( msgid`Use the following link to confirm your email:
${data.url}
This link is valid till ${data.tokenExpires.toISOString()}.
If you received this email by mistake just ignore it.
` ) %>
# api/password-recovery-token
api/password-recovery-token/subject: !l10nt Password reset link
api/password-recovery-token/body: !ejs |-
<%- locale.l10n( msgid`Use the following link to reset your password:
${data.url}
This link is valid till ${data.tokenExpires.toISOString()}.
If you didn't ask for password reset and received this email by mistake just ignore it.
` ) %>
# api/new-signin
api/new-signin/subject: !l10nt New device
api/new-signin/body: !ejs |-
<%- locale.l10n( msgid`You just signed in on the new device.
IP address: ${data.remoteAddress}
Device: ${data.userAgent.device || "-"}
Platform: ${data.userAgent.os || "-"}
Browser: ${data.userAgent.browserName || "-"}
User agent: ${data.userAgent.userAgent || "-"}
If it was not you, please, change your password and remove this session from your account sessions.
` ) %>
config:
defaultVersion: 1
avatarUrl: /api/avatar/
avatarMaxAge: 1 day
forceDefaultAvatar: false
defaultGravatar: ~
# forntend
frontendUrl: ~
frontend:
location: /api
maxParallelCallsPerClient: 1
maxApiRequestBodySize: 10 MB
idleTimeout: 960 seconds # send pings, required for Nginx, CloudFlare
sendPingsAutomatically: true
compress: ~ # user server default value
# users
signupEnabled: true
# tokens
apiTokensCacheMaxSize: 10_000
# sessions
sessionsCacheMaxSize: 10_000
sessionMaxAge: 30 days
authorizedSessionMaxAge: 5 minutes
# oauth
oauth:
google:
clientId: ~
clientSecret: ~
facebook:
clientId: ~
clientSecret: ~
github:
clientId: ~
clientSecret: ~