This tutorial will guide you on how to install Password Pusher on OpenBSD. Password Pusher is a web application that allows you to securely share passwords and secrets with others.
Before you begin, ensure that you have the following:
Clone the Password Pusher repository from GitHub:
$ git clone https://github.com/pglombardo/PasswordPusher.git
Install the required Perl modules:
$ sudo cpanm --installdeps PasswordPusher
Copy the configuration file to the appropriate location:
$ sudo cp PasswordPusher/config/passwordpusher.conf.example /etc/passwordpusher.conf
Edit the configuration file to match your environment. You will need to set the following parameters:
# Listen port
listen = 127.0.0.1:8080
# Database configuration
database_type = Pg
database_name = passwordpusher
database_user = passwordpusher
database_password = <insert_your_database_password_here>
# Email configuration
smtp_host = <insert_your_smtp_host_here>
smtp_port = 587
smtp_username = <insert_your_smtp_username_here>
smtp_password = <insert_your_smtp_password_here>
from_address = <insert_your_from_address_here>
Create the database:
$ sudo -u _postgresql createdb passwordpusher
Run the database migration:
$ sudo -u _passwordpusher perl PasswordPusher/script/passwordpusher_create.pl deploy
Start the application server:
$ sudo -u _passwordpusher hypnotoad PasswordPusher/script/passwordpusher
Configure your web server to proxy requests to the application server. For example, if you are using Nginx, you can create a virtual host configuration file at /etc/nginx/sites-available/pwpush.example.com
with the following content:
server {
listen 80;
server_name pwpush.example.com;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Activate the virtual host configuration file:
$ sudo ln -s /etc/nginx/sites-available/pwpush.example.com /etc/nginx/sites-enabled/
Note: If you are using Apache, you can use mod_proxy to achieve the same result.
Restart your web server:
$ sudo service nginx restart
Congratulations! You have successfully installed Password Pusher on OpenBSD. You can now access the application by visiting the URL of your virtual host in a web browser.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!