Skip to content

derivepass/derivepass-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

derivepass-storage

Minimal storage server for DerivePass.

Installation

npm install
npm run build

# Create new user
node util/add-user.js -u username -p password

# Start the server
npm start

Running as service

Place this service information into /etc/systemd/system/derivepass.service:

[Unit]
Description="storage.derivepass.com"

[Service]
ExecStart=/usr/bin/node index.js
WorkingDirectory=/var/www/derivepass/app
Restart=always
RestartSec=10
SyslogIdentifier=derivepass
Environment=NODE_ENV=production PORT=8000 DB_PATH=/var/www/derivepass/db.sqlite
User=derivepass
Group=derivepass

[Install]
WantedBy=multi-user.target

Build and start the service;

apt update
apt install build-essential
curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - && \
    sudo apt-get install -y nodejs

adduser derivepass
mkdir /var/www/derivepass
chown derivepass:derivepass /var/www/derivepass
git clone https://github.com/derivepass/derivepass-storage \
    /var/www/derivepass/app
cd /var/www/derivepass/app
npm install
systemctl enable derivepass.service
systemctl start derivepass.service

Verify that it runs with:

systemctl status derivepass.service

LICENSE

This software is licensed under the MIT License.

About

Minimal pluggable storage for DerivePass

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published