From 19a6d65c5d70012d29a054764cf441fbef2b5d15 Mon Sep 17 00:00:00 2001 From: jppaled <22444128+jppaled@users.noreply.github.com> Date: Mon, 27 Jun 2022 23:48:47 +0200 Subject: Many squashed commits --- .footer.html | 7 +++++++ .github/workflows/upload.yml | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .footer.html diff --git a/.footer.html b/.footer.html new file mode 100644 index 0000000..2d33ffb --- /dev/null +++ b/.footer.html @@ -0,0 +1,7 @@ +LandChad.net
+Because Everyone should be an Internet LandChad.
+
  • chad
  • +
  • RSS
  • +
  • BTC
  • +
  • XMR
  • +
  • Github
  • diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index 6b7ac9b..a6c9260 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -27,7 +27,6 @@ jobs: passphrase: ${{ secrets.chad_pass }} port: 22 script: | - cd landchad-src + cd landchad git stash git pull --force origin master - hugo -s . -t /var/www/lugo -d ~/landchad --cacheDir ~/hugocache -- cgit v1.2.3 From 585083b68608134d44a5a50d8f64b2c0c6ac8a31 Mon Sep 17 00:00:00 2001 From: jppaled <22444128+jppaled@users.noreply.github.com> Date: Tue, 28 Jun 2022 00:07:50 +0200 Subject: Added Yarr tutorial --- .footer.html | 7 --- .github/workflows/upload.yml | 3 +- content/yarr.md | 104 +++++++++++++++++++++++++++++++++++++++++++ static/pix/yarr.svg | 1 + 4 files changed, 107 insertions(+), 8 deletions(-) delete mode 100644 .footer.html create mode 100644 content/yarr.md create mode 100644 static/pix/yarr.svg diff --git a/.footer.html b/.footer.html deleted file mode 100644 index 2d33ffb..0000000 --- a/.footer.html +++ /dev/null @@ -1,7 +0,0 @@ -LandChad.net
    -Because Everyone should be an Internet LandChad.
    -
  • chad
  • -
  • RSS
  • -
  • BTC
  • -
  • XMR
  • -
  • Github
  • diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index a6c9260..6b7ac9b 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -27,6 +27,7 @@ jobs: passphrase: ${{ secrets.chad_pass }} port: 22 script: | - cd landchad + cd landchad-src git stash git pull --force origin master + hugo -s . -t /var/www/lugo -d ~/landchad --cacheDir ~/hugocache diff --git a/content/yarr.md b/content/yarr.md new file mode 100644 index 0000000..d649f61 --- /dev/null +++ b/content/yarr.md @@ -0,0 +1,104 @@ +--- +title: "Yarr" +date: 2022-06-28 +pix: 'yarr.svg' +icon: 'yarr.svg' +tags: ['service'] +short_desc: 'A self-hosted, web-based feed aggregator' +--- + +Yarr (yet another rss reader) is a web-based feed aggregator which can be used both as a desktop application and a personal self-hosted server. + +It is written in Go with the frontend in Vue.js. The storage is backed by SQLite. + +More information can be found on the [github](https://github.com/nkanaev/yarr) + +## Installing Yarr + +Firstly, we have to download yarr binary from github on our system + +```sh +wget https://github.com/nkanaev/yarr/releases/download/v2.3/yarr-v2.3-linux64.zip +``` + +Unzip the archive + +```sh +unzip -x yarr-v2.3-linux64.zip +``` + +Move the binary to your bin folder + +```sh +sudo mv yarr /usr/local/bin/yarr +``` + +## Configuration + +Now we need to create a auth.conf file that include user and password to create a local yarr account. +I personnaly store this file in a directory called yarr in ~/.config folder, but you can place the file wherever you want. + +```sh +mkdir ~/.config/yarr +echo 'landchad:password' > ~/.config/yarr/auth.conf +``` + +## Creating a service + +Create a new file /etc/systemd/system/yarr.service and add the following: + +```systemd +[Unit] +Description=Yarr + +[Service] +Environment=HOME=/home/landchad +ExecStart=/usr/bin/env yarr -addr 0.0.0.0:7070 -auth-file=/home/landchad/.config/yarr/auth.conf -db=/home/landchad/.config/yarr/feed.sql -log-file=/home/landchad>/.config/yarr/access.log +Restart=on-failure + +[Install] +WantedBy=multi-user.target +``` + +After creating the config, load, start and enable the service with the following commands. + +```sh +systemctl daemon-reload +systemctl enable --now yarr +``` + +## Nginx configuration +Create an Nginx configuration file for Yarr, say /etc/nginx/sites-available/yarr and add the content below: + +```nginx +server { + listen 80 ; + listen [::]:80 ; + + server_name rss.example.org ; + + location / { + proxy_pass http://localhost:7070/; + } +} +``` + +Now let's enable the Nginx Yarr site and reload Nginx to make it active. + +```sh +ln -s /etc/nginx/sites-available/yarr /etc/nginx/sites-enabled +systemctl reload nginx +``` + +### Encryption + +You can encrypt your yarr subdomain as well. Let's do that with certbot: + +```sh +certbot --nginx -d rss.example.org +``` + +Now you can go to rss.example.org, login and start to add your feeds ! + +## Contribution +Author: Jppaled -- [jppaled.xyz](https://jppaled.xyz) \-- XMR: `86bVp8bcx1F3y3NsfuTRs6D7FfnDyLomV7dLJmus2YMiY9Aat6W5m8JGwuvH39HKrq3immS7noKq8HeW4gb4BFbyLoz5WSZ`{.crypto} diff --git a/static/pix/yarr.svg b/static/pix/yarr.svg new file mode 100644 index 0000000..35be6fa --- /dev/null +++ b/static/pix/yarr.svg @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.3 From d44c3b80f6cab8926c4183c4f3a685467951f444 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 1 Jul 2022 08:20:12 -0400 Subject: yarr tweaks, release --- content/yarr.md | 49 +++++++++++++++++++++++-------------------------- static/pix/yarr.svg | 2 +- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/content/yarr.md b/content/yarr.md index d649f61..6882fa1 100644 --- a/content/yarr.md +++ b/content/yarr.md @@ -1,53 +1,50 @@ --- title: "Yarr" -date: 2022-06-28 -pix: 'yarr.svg' +date: 2022-07-01 icon: 'yarr.svg' tags: ['service'] short_desc: 'A self-hosted, web-based feed aggregator' --- -Yarr (yet another rss reader) is a web-based feed aggregator which can be used both as a desktop application and a personal self-hosted server. - +[Yarr](https://github.com/nkanaev/yarr) (yet another rss reader) is a web-based feed aggregator which can be used both as a desktop application and a personal self-hosted server. + It is written in Go with the frontend in Vue.js. The storage is backed by SQLite. - -More information can be found on the [github](https://github.com/nkanaev/yarr) - + ## Installing Yarr Firstly, we have to download yarr binary from github on our system - + ```sh wget https://github.com/nkanaev/yarr/releases/download/v2.3/yarr-v2.3-linux64.zip ``` - + Unzip the archive ```sh unzip -x yarr-v2.3-linux64.zip ``` - + Move the binary to your bin folder -```sh -sudo mv yarr /usr/local/bin/yarr +```sh +mv yarr /usr/local/bin/yarr ``` - + ## Configuration - -Now we need to create a auth.conf file that include user and password to create a local yarr account. -I personnaly store this file in a directory called yarr in ~/.config folder, but you can place the file wherever you want. + +Now we need to create a `auth.conf` file that include user and password to create a local yarr account. +I personnaly store this file in a directory called yarr in `~/.config` folder, but you can place the file wherever you want. ```sh mkdir ~/.config/yarr echo 'landchad:password' > ~/.config/yarr/auth.conf ``` - + ## Creating a service - + Create a new file /etc/systemd/system/yarr.service and add the following: -```systemd +```systemd [Unit] Description=Yarr @@ -62,7 +59,7 @@ WantedBy=multi-user.target After creating the config, load, start and enable the service with the following commands. -```sh +```sh systemctl daemon-reload systemctl enable --now yarr ``` @@ -74,7 +71,7 @@ Create an Nginx configuration file for Yarr, say /etc/nginx/sites-available/yarr server { listen 80 ; listen [::]:80 ; - + server_name rss.example.org ; location / { @@ -85,20 +82,20 @@ server { Now let's enable the Nginx Yarr site and reload Nginx to make it active. -```sh +```sh ln -s /etc/nginx/sites-available/yarr /etc/nginx/sites-enabled systemctl reload nginx ``` ### Encryption - + You can encrypt your yarr subdomain as well. Let's do that with certbot: -```sh +```sh certbot --nginx -d rss.example.org ``` -Now you can go to rss.example.org, login and start to add your feeds ! - +Now you can go to rss.example.org, login and start to add your feeds! + ## Contribution Author: Jppaled -- [jppaled.xyz](https://jppaled.xyz) \-- XMR: `86bVp8bcx1F3y3NsfuTRs6D7FfnDyLomV7dLJmus2YMiY9Aat6W5m8JGwuvH39HKrq3immS7noKq8HeW4gb4BFbyLoz5WSZ`{.crypto} diff --git a/static/pix/yarr.svg b/static/pix/yarr.svg index 35be6fa..bedae7c 100644 --- a/static/pix/yarr.svg +++ b/static/pix/yarr.svg @@ -1 +1 @@ - \ No newline at end of file + -- cgit v1.2.3