Skip to content

pgpkeys-eu/sks-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sks-tools

Toolkit for spinning up legacy sks deployments

duplicator

A script that takes a standalone dpkg-installed sks instance and duplicates it (default 4x) to make a cluster. The duplicates will sync with each other and the primary, but not with the primary's external peers.

etc/apache2

Apache reverse-proxy configuration. Before deploying, invoke the following by hand to install all your prerequisites (including a letsencrypt cert):

cd /var/www
git clone https://github.com/pgpkeys-eu/pgpkeyserver-lite
apt install certbot apache2
a2enmod ssl rewrite proxy proxy_http lbmethod_byrequests proxy_balancer headers
openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048
cat <<EOF >> /etc/apache2/sites-enabled/sks.pgpkeys.eu.conf
<VirtualHost *:80>
	ServerName sks.pgpkeys.eu
	DocumentRoot /var/www/pgpkeyserver-lite
</VirtualHost>
EOF
apache2ctl graceful
certbot -d sks.pgpkeys.eu --webroot --webroot-path /var/www/pgpkeyserver-lite
rm /etc/apache2/sites-enabled/sks.pgpkeys.eu.conf

Now unpack the contents of etc/apache2 into the corresponding places.

  • Edit /etc/apache2/ports.conf and add all your non-localhost listening addresses with port 11371 (see file comments). This is because sks will listen on localhost port 11371 and we mustn't step on its toes. Keep the Listen 127.0.113.71:11371 entry as this is required for tor.
  • Edit /etc/apache2/sites-available/sks.pgpkeys.eu and alter the number of duplicates in both Proxy directives (if you didn't use the default 4).

Finally, incant:

a2ensite sks.pgpkeys.eu
apache2ctl graceful

etc/letsencrypt

A renewal-hook script to ensure that renewed certs are automatically applied.

etc/logrotate.d

Limit apache log retention to 48h

etc/tor

Hidden service configuration parameters.

About

Toolkit for managing legacy sks deployments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages