Elasticsearch - nbspou/scripts GitHub Wiki
- https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html
- https://dzone.com/articles/install-elasticsearch-on-ubuntu-18041-1
- https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-14-04
- https://www.ralphlepore.net/setting-up-basic-authentication-with-elasticsearch/
- https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/
Steps
For remote development setup
- Install Java 8
- Install Elasticsearch 6
- Configure localhost:9200
- Configure systemctl
- Set up nginx proxy with basic auth
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl on;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
server_name example.com;
location / {
proxy_ignore_client_abort on;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:9200;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
auth_basic "Example";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}