Difference between revisions of "Wallabag"

From Blue-IT.org Wiki

(Apache 2.4)
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
== Apache 2.4 ==
 
== Apache 2.4 ==
  
  <VirtualHost *:80>
+
  <VirtualHost *:443>
 
+
 
         ServerName mywallagbag.mydomain.tld
 
         ServerName mywallagbag.mydomain.tld
 
         ServerAlias www.mywallagbag.mydomain.tld
 
         ServerAlias www.mywallagbag.mydomain.tld
 
         DocumentRoot /srv/www/mywallagbag.mydomain.tld/web
 
         DocumentRoot /srv/www/mywallagbag.mydomain.tld/web
 
+
 
         ErrorLog /var/log/apache2/mywallagbag.mydomain.tld-error.log
 
         ErrorLog /var/log/apache2/mywallagbag.mydomain.tld-error.log
 
         CustomLog /var/log/apache2/mywallagbag.mydomain.tld-access.log combined
 
         CustomLog /var/log/apache2/mywallagbag.mydomain.tld-access.log combined
 
+
 
         <Directory "/srv/www/mywallagbag.mydomain.tld/web">
 
         <Directory "/srv/www/mywallagbag.mydomain.tld/web">
 
+
                    # apache 2.4
 
 
             DirectoryIndex app.php
 
             DirectoryIndex app.php
 
             AllowOverride All
 
             AllowOverride All
 
             Require all granted
 
             Require all granted
 
+
 
             <IfModule mod_rewrite.c>
 
             <IfModule mod_rewrite.c>
 
                 Options -MultiViews
 
                 Options -MultiViews
Line 33: Line 32:
 
                 RewriteRule ^(.*)$ app.php [QSA,L]
 
                 RewriteRule ^(.*)$ app.php [QSA,L]
 
             </IfModule>
 
             </IfModule>
 
+
 
         </Directory>
 
         </Directory>
 
+
 
         <Directory "/srv/www/mywallagbag.mydomain.tld/web/bundles">
 
         <Directory "/srv/www/mywallagbag.mydomain.tld/web/bundles">
 
             <IfModule mod_rewrite.c>
 
             <IfModule mod_rewrite.c>
Line 41: Line 40:
 
             </IfModule>
 
             </IfModule>
 
         </Directory>
 
         </Directory>
 
+
 +
        #SSL ...
 +
 
  </VirtualHost>
 
  </VirtualHost>
 
  
 
== Security ==
 
== Security ==

Latest revision as of 11:08, 26 May 2016

What is wallabag?

wallabag is a self hostable application for saving web pages. Unlike other services, wallabag is free (as in freedom) and open source. With this application you will not miss content anymore. Click, save, read it when you want. It saves the content you select so that you can read it when you have time.

Installation

Apache 2.4

<VirtualHost *:443>

       ServerName mywallagbag.mydomain.tld
       ServerAlias www.mywallagbag.mydomain.tld
       DocumentRoot /srv/www/mywallagbag.mydomain.tld/web

       ErrorLog /var/log/apache2/mywallagbag.mydomain.tld-error.log
       CustomLog /var/log/apache2/mywallagbag.mydomain.tld-access.log combined

       <Directory "/srv/www/mywallagbag.mydomain.tld/web">

           DirectoryIndex app.php
           AllowOverride All
           Require all granted

           <IfModule mod_rewrite.c>
               Options -MultiViews
               RewriteEngine On
               RewriteCond %{REQUEST_FILENAME} !-f
               RewriteRule ^(.*)$ app.php [QSA,L]
           </IfModule>

       </Directory>

       <Directory "/srv/www/mywallagbag.mydomain.tld/web/bundles">
           <IfModule mod_rewrite.c>
               RewriteEngine Off
           </IfModule>
       </Directory>

       #SSL ...

</VirtualHost>

Security

Fail2ban

Wallabag 1.9.x

I use the following regex with wallabag 1.9.1 in my filter:

failregex = .* \[:error\] \[pid \d*\] \[client <HOST>:\d*] user .* authentication failure, referer: https:\/\/subdomain\.domain\.tld\/

Wallabag 2.x

Open issue: https://github.com/wallabag/wallabag/issues/2117