Apache Reverse Proxy for Akaunting

Akaunting is free software that provides a web-based accounting package. The software uses the Docker platform with the files being available on GitHub, The website for the project is at the following URL:            https://akaunting.com/
 
As with most freeware, the people at Akaunting provide the software and if you want / need support that is something you have to pay for. Some people have developed add-on applications for a per-annum fee to improve the operability; the cost of these ‘APPs’ are quite reasonable.
 
An Akaunting installation in a LAMP environment does require a reverse proxy being installed on the server. Below is the configuration file that works with the Akaunting / Docker / Apache environment for the local installation. It should be noted that the names have been change to protect the mostly innocent. In the sample file below change Akaunting.fqdn with the site URL for you installation. 
 
/etc/http/http.d/RProxy-Akaunting.fqdn
# FILE START
LogLevel debug
Listen Akaunting.fqdn:443
<VirtualHost Akaunting.fqdn:443>
    ServerName Akaunting.fqdn
    ServerAdmin admin@Akaunting.fqdn
    ProxyPassReverse / http://Akaunting.fqdn /
    RequestHeader set X-Forwarded-Proto "https"
    RequestHeader set X-Forwarded-Port "443"
    ProxyRequests Off
    SSLCertificateFile /etc/ssl/certs/Akaunting-signed.crt
    SSLCertificateKeyFile /etc/ssl/private/Akaunting-selfsigned.key
</VirtualHost>
# FILE END
 
Out of Scope:
For this configuration, two dependencies need to be resolved; they are the SSL/TLS certificate and name resolution for the Akaunting.fqdn host. Of course using a ‘hosts’ file is one option, yet a DNS server with the associated entries is what it seems that Docker prefers. Historically the Domain Name System (DNS) replaced the hosts file when distributing a hosts file became too cumbersome.

No comments:

Post a Comment