Linux Server Version

22 views
Skip to first unread message

claw...@gmail.com

unread,
Mar 4, 2019, 1:47:45 PM3/4/19
to dsBudget
So I know a while ago a v3 was in the works for a hosted version.  Until then, I've been able to make v2 work on a hosted linux server with apache password protection.  Here's the procedure I used for anyone interested:

Requirements: LAMP server, or at least an apache server.
You'll need to make sure some port forwarding is set up for port 443 or 80 or both and a domain name, maybe dynamic dns if you don't have a static ip.
You probably don't really want to attempt this without some working knowledge of apache servers.

1) Create a .htpasswd file somewhere: htpasswd -c /directory/.htpasswd user
2) Download and unzip dsbudget
3) Run the dsbudget run.sh
4) Create a virtual host
cd /etc/apache2/sites-available/
sudo nano dsbudget.conf
(I recommend ssl, I'm using letsencrypt.)
<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerName budget.myCustomDomain.com
    <Location / >
        AuthType Basic
        AuthName "Budget"
        AuthUserFile /directory/to/.htpasswd
        Require valid-user
    </Location>

    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    SSLProxyCheckPeerCN on
    SSLProxyCheckPeerExpire on

    ProxyRequests Off
    ProxyPreserveHost Off

    ProxyHTMLInterp On

    ProxyPass / http://www.myCustomDomain:16091/
    ProxyPassReverse / http://www.myCustomDomain:16091/
    SSLProxyEngine On

SSLCertificateFile /etc/letsencrypt/live/myCustomDomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/myCustomDomain.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

5) Enable the host: sudo a2ensite dsbudget.conf
6) Restart apache: sudo systemctl restart apache2
8) Enter your username and password.

I have no idea if this can be modified easily to work in windows since I don't use it.  I'd say probably.
Also of note, I provide no guarantees of exactly how secure this is.  So use at your own risk.
Reply all
Reply to author
Forward
0 new messages