This is the source-code of paperwallet.peercoin.net, a secure client-side peercoin address generator.
It was built from ground up aiming for performance on mobile devices, but you can also use it on desktop browsers.
If you're concerned about generating your addresses online, there is always the option of building the project locally. The steps to do that are listed bellow:
- Make sure you have Node installed.
- Clone this repo;
- In the project folder, run
npm install
; - Then run
npm start
. - Open
localhost:3333
in your browser and generate your wallet.
- Clone this repo locally on master branch and run build instructions;
- Clone this repo on server on docker branch;
- Copy
/public
content from local to/public
folder on docker branch you cloned in server; - Run:
docker build -t ppc-wallet .
; - Run:
docker run --name ppc-wallet-nginx --restart on-failure -p 5001:80 ppc-wallet
.
The Reverse-proxy and SSL files are located on local NGINX (outside of docker). They can be found at: /etc/nginx/sites-available/default
.
SSL is generated by Let's Encrypt via certbot.
The URLs addressed are:
https://hodl.peercoin.net/ https://paperwallet.peercoin.net/
In order to update SSL certificate, run the command below:
sudo systemctl stop nginx && sudo certbot certonly --standalone -d hodl.peercoin.net -d paperwallet.peercoin.net && sudo systemctl start nginx
The configuration used at /etc/nginx/sites-available/default
is:
# Peercoin Wallet configs
upstream ppc-wallet-generator {
server 127.0.0.1:5001;
}
server {
listen 80;
server_name hodl.peercoin.net paperwallet.peercoin.net;
location / {
proxy_pass http://ppc-wallet-generator;
}
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/hodl.peercoin.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/hodl.peercoin.net/privkey.pem;
include /etc/nginx/conf.d/ssl.conf;
}