Skip to content

Commit

Permalink
Update some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Sep 22, 2023
1 parent 14d750b commit 12599bf
Show file tree
Hide file tree
Showing 6 changed files with 679 additions and 299 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ GEM
json (2.6.3)
minitest (5.15.0)
multipart-post (2.2.3)
openssl (2.2.2)
openssl (3.1.0)
ipaddr
ruby2_keywords (0.0.5)
tzinfo (2.0.5)
Expand Down
33 changes: 33 additions & 0 deletions NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,39 @@ cat /etc/letsencrypt/live/iip.readux.io/privkey.pem

The other optional fields can be left blank.

## Elasticsearch Notes

### Expired Certs

The certs are managed by certbot but they have to be readable by the elasticsearch group. So we have to 1) add the elasticsearch group to the ownership and 2) copy the certs to a directory readable by the elasticsearch group. Certbot really locks down access to the certs it create.

Certbot should automatically create new certs, but if you need to make one, run:

~~~sh
sudo certbot renew --force-renewal
~~~

To copy the certs, we have to go full root:

~~~sh
sudo su -
cp /etc/letsencrypt/archive/search.readux.io/privkey{biggest number}.pem /etc/elasticsearch/certs/privkey.pem
cp /etc/letsencrypt/archive/search.readux.io/fullchain{biggest number}.pem /etc/elasticsearch/certs/fullchain.pem
exit
~~~

Add the elasticsearch group as an owner:

~~~sh
sudo chown root:elasticsearch /etc/elasticsearch/certs/*
~~~

Restart Elasticsearch

~~~sh
sudo service elasticsearch restart
~~~

## Convert existing SVG annotations

~~~python
Expand Down
Loading

0 comments on commit 12599bf

Please sign in to comment.