Password Pusher

Photo by Towfiqu barbhuiya on Unsplash

It’s open source ( https://pwpush.com/) its for sharing a link temporarily for a message or password.

To run your own in a simple fashion, so no login, ephemeral password database here is how simple it is.

The docker container I can start like this:

docker run -d --env-file ./pwp.env --restart unless-stopped --name pwp -p "5100:5100" pglombardo/pwpush:latest 

This refers to an enviroment file:

PWP__ENABLE_LOGINS=false
PWP__THEME=slate
PWP__PRECOMPILE=true
PWP__BRAND__TITLE=Our Password Pusher
PWP__BRAND__TAGLINE=Our password share ... 
PWP__OVERRIDE_BASE_URL=https://pwp.example.com

On this server I have apache front end:

<VirtualHost *:80>
    ServerName pwp.example.com
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [R=301,L]
</VirtualHost>

<VirtualHost *:443>
    ServerName pwp.example.com
    SSLEngine on
    SSLCertificateFile /etc/pki/tls/certs/pwp.crt
    SSLCertificateKeyFile /etc/pki/tls/private/pwp.key
    #SSLCertificateChainFile /etc/pki/tls/certs/pwp.ca-bundle
    # Apache equivalents for Nginx's proxy_set_header
    RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s"
    RequestHeader set X-Forwarded-Host "%{HTTP_HOST}s"
    RequestHeader set X-Forwarded-Proto "https"
    RequestHeader set X-Forwarded-Ssl "on"
    ProxyPreserveHost On
    ProxyPass / http://localhost:5100/
    ProxyPassReverse / http://localhost:5100/
    ErrorLog logs/pwp-error_log
    CustomLog logs/pwp-access_log common
</VirtualHost>

Leave a Reply

Your email address will not be published. Required fields are marked *