diff --git a/README.md b/README.md index 4e8379a7a..ea80cec4f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,11 @@ # what is wallabag ? + +## About development +We are working on a technical rework, using Symfony 2. You can contribute to [this version here](https://github.com/wallabag/wallabag/tree/v2). + +wallabag 1.x is still maintained but we won't develop new features. + +## Description wallabag is a self hostable application allowing you to not miss any content anymore. Click, save, read it when you can. It extracts content so that you can read it when you have time. More informations on our website: [wallabag.org](http://wallabag.org) diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index f3d1013fe..9c7483918 100755 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -40,6 +40,8 @@ final class Tools */ public static function getPocheUrl() { + $baseUrl = ""; + $https = (!empty($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on')) || (isset($_SERVER["SERVER_PORT"]) @@ -72,8 +74,15 @@ final class Tools $serverport = ''; } - return 'http' . ($https ? 's' : '') . '://' - . $host . $serverport . $scriptname; + // check if BASE_URL is configured + if(BASE_URL) { + $baseUrl = BASE_URL; + } else { + $baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport; + } + + return $baseUrl . $scriptname; + } /** diff --git a/inc/poche/config.inc.default.php b/inc/poche/config.inc.default.php index 09d3aa9ae..5d889ffdb 100755 --- a/inc/poche/config.inc.default.php +++ b/inc/poche/config.inc.default.php @@ -31,6 +31,9 @@ // Change this if not using the standart port for SSL - i.e you server is behind sslh @define ('SSL_PORT', 443); +// Define this only if you use wallabag behind a proxy and if you encounter problems +@define ('BASE_URL', ''); + @define ('MODE_DEMO', FALSE); @define ('DEBUG_POCHE', FALSE);