This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Creates self-signed CA certificates and certificates for local domains. | |
# | |
# Prompts for a local domain name (e.g. my-app.localhost) and creates all | |
# necessary certificates. | |
# | |
# Next steps: | |
# Copy the certificates (e.g. my-app.localhost.crt and my-app.localhost.key) to | |
# your service (Nginx, Apache, ...) and configure it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Login Attempt Limiter Hook for Feathers (https://feathersjs.com/) | |
* | |
* Limits the login attempts by recording the number of failed logins | |
* and the datetime of the last login attempt to the user data. | |
* | |
* 1. Extend your user model by two fields: | |
* loginAttempts: { | |
* type: DataTypes.INTEGER, | |
* defaultValue: 0 |