/etc/security/limits.conf
elasticsearch hard memlock 100000
/etc/default/elasticsearch
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| # Disable Directory listing | |
| Options -Indexes | |
| # block files which needs to be hidden // in here specify .example extension of the file | |
| <Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$"> | |
| Order allow,deny | |
| Deny from all | |
| </Files> | |
| # in here specify full file name sperator '|' |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Upload File using jQuery.ajax() with progress support</title> | |
| </head> | |
| <body> | |
| <input type="file" name="file" id="sel-file"/> |