Skip to content

Commit

Permalink
Merge branch 'j3k0-1.4' into invoiceplane-1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Naik committed Oct 22, 2017
2 parents 7d2cce9 + 0b1df58 commit 328e5de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
**1.5.4**
- invoiceplane: upgrade to 1.5.4
- add `PROXY_IPS` to configure reverse proxy ips

**1.5.3**
- invoiceplane: upgrade to 1.5.3
Expand Down
7 changes: 7 additions & 0 deletions assets/runtime/functions
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source ${INVOICEPLANE_RUNTIME_DIR}/env-defaults

INVOICEPLANE_TEMPLATES_DIR=${INVOICEPLANE_RUNTIME_DIR}/config
INVOICEPLANE_CONFIG=${INVOICEPLANE_DATA_DIR}/ipconfig.php
INVOICEPLANE_CODEIGNITER_CONFIG=${INVOICEPLANE_INSTALL_DIR}/application/config/config.php
INVOICEPLANE_DATABASE_CONFIG=${INVOICEPLANE_INSTALL_DIR}/application/config/database.php
INVOICEPLANE_NGINX_CONFIG=/etc/nginx/sites-enabled/InvoicePlane.conf

Expand Down Expand Up @@ -196,6 +197,11 @@ invoiceplane_configure_url() {
invoiceplane_set_param "IP_URL" "${INVOICEPLANE_URL}"
}

invoiceplane_configure_proxy_ips() {
echo "Configuring InvoicePlane::Proxy IPS"
sed -i "s|config\['proxy_ips'\] = '';|config['proxy_ips'] = '"${PROXY_IPS}"';|" ${INVOICEPLANE_CODEIGNITER_CONFIG}
}

invoiceplane_configure_database() {
echo -n "Configuring InvoicePlane::database"
invoiceplane_finalize_database_parameters
Expand Down Expand Up @@ -383,6 +389,7 @@ configure_invoiceplane() {
echo "Configuring InvoicePlane..."
invoiceplane_configure_debugging
invoiceplane_configure_url
invoiceplane_configure_proxy_ips
invoiceplane_configure_database
invoiceplane_configure_timezone
}
Expand Down

0 comments on commit 328e5de

Please sign in to comment.