Software version 2.7 Operating System Debian 7 Website Selfoss Website Others Nginx
Introduction link Selfoss is a self-hosted RSS reader solution. It could be compared to Tiny Tinys RSS or Feedly.
Installation link First, you need to download the zip file and uncompress it to the good directory:
1
2
3
4
5
6
mkdir /usr/share/nginx/www/selfoss
cd /usr/share/nginx/www/selfoss
wget http://selfoss.aditu.de/selfoss-2.7.zip
unzip selfoss-2.7.zip
chown -Rf www-data. .
rm -f selfoss-2.7.zip
Configuration link Database server link We’re going to setup the MariaDB part:
1
2
3
4
CREATE DATABASE selfoss ;
CREATE USER 'selfoss_user' @ 'localhost' IDENTIFIED BY 'selfoss_password' ;
GRANT ALL ON selfoss .* TO 'selfoss_user' @ 'localhost' IDENTIFIED BY 'selfoss_password' ;
FLUSH privileges ;
Replace login and password with your needs.
Web server link We need to configure the web server:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
server {
include listen_port.conf;
server_name feed.deimos.fr;
root /usr/share/nginx/www/selfoss;
index index.php;
access_log /var/log/nginx/feed.deimos.fr_access.log;
error_log /var/log/nginx/feed.deimos.fr_error.log;
location ~* \ ( gif|jpg|png) {
expires 30d;
}
location ~ ^/favicons/.*$ {
try_files $uri /data/$uri ;
}
location ~* ^/( data\/ logs|data\/ sqlite|config\. ini|\. ht) {
deny all;
}
location / {
try_files $uri /public/$uri /index.php$is_args$args ;
}
location ~ \. php$ {
client_body_timeout 360;
send_timeout 360;
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_intercept_errors on;
}
# Drop config
include drop.conf;
}
Then create the symlink:
1
ln -s /etc/nginx/sites-available/feed.deimos.fr /etc/nginx/sites-enabled/
Then add it to the www-data crontab:
1
curl -L -s -k "https://rss2.deimos.fr/update"
Copy and past the default configuration:
1
cp defaults.ini config.ini
Then modify the fields corresponding to your new database setup and remove unneeded lines, like in this example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; see http://selfoss.aditu.de for more information about
; the configuration parameters
[ globals]
db_type = mysql
db_host = localhost
db_database = selfoss
db_username = selfoss_user
db_password = selfoss_password
db_port = 3306
logger_level = ERROR
items_perpage = 50
items_lifetime = 30
base_url = http://field.deimos.fr
username = deimos
password = xxxxxxxxxxxxxxxx
;salt = lkjl1289
salt = Tarn0twif
rss_title = selfoss feed
rss_max_items = 10000
You can generate a password in adding “/password” at the end of the url (ex. http://feed.deimos.fr/password )
Then connect to the interface to finish the setup :-)
References link Last updated
14 Jun 2013, 21:13 CEST . history