User Tools

Site Tools


You are not allowed to perform this action
freshrssinstallation

FreshRSS installation

This is a documentation of my FreshRSS install to an apache server (pinky) behind an nginx proxy (athena).

  1. Grab and extract latest FreshRSS release
  2. Extract to /mnt/minsunluks/www/fresh
  3. Change permissions
    chown -R www-data:www-data /mnt/minsunluks/www/fresh
    chmod -R g+w /mnt/minsunluks/www/fresh
  4. Add and enable the following config in /etc/apache2/sites-available/fresh.conf:
    Alias /fresh "/mnt/minsunluks/www/fresh/p/"
     
    <Directory /mnt/minsunluks/www/fresh/p>
            AllowOverride AuthConfig FileInfo Indexes Limit
            Require all granted
    </Directory>
     
    AllowEncodedSlashes On
  5. Create MySQL database:
    mysql -u root -p
    CREATE USER 'fresh'@'localhost' IDENTIFIED BY '<password>';
    CREATE DATABASE `fresh`;
    GRANT ALL privileges ON `fresh`.* TO 'fresh'@localhost;
    FLUSH PRIVILEGES;
    QUIT;
  6. Continue setting up the configuration in a web browser
  7. Insert the following into the nginx proxy configuration:
            location /fresh {
                    return 301 $scheme://$host/fresh/;
            }
            location /fresh/i {
                    return 301 $scheme://$host/fresh/i/;
            }
            location ^~ /fresh/ {
                    proxy_pass http://192.168.0.5/fresh;
                    rewrite /fresh(.*) /fresh/$1 break;
                    proxy_set_header        Host $http_host;
                    proxy_set_header        X-Real-IP $remote_addr;
                    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
                    proxy_set_header        X-Forwarded-Proto $scheme;
            }
            location ^~ /fresh/i/ {
                    proxy_pass http://192.168.0.5/fresh/i;
                    rewrite /fresh/i(.*) /fresh/i/$1 break;
                    proxy_set_header        Host $http_host;
                    proxy_set_header        X-Real-IP $remote_addr;
                    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
                    proxy_set_header        X-Forwarded-Proto $scheme;
            }
  8. Create /etc/cron.d/update-freshrss-feeds
    */15 * * * * www-data /usr/bin/php /mnt/minsunluks/www/fresh/app/actualize_script.php > /tmp/freshrss.log 2>&1
freshrssinstallation.txt · Last modified: by wolfo

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki