fix runtheblog blogpost

This commit is contained in:
nihilist 2025-03-27 11:31:50 +01:00
parent 818c8e34b2
commit 5f896f64cb

View file

@ -100,7 +100,7 @@
<p>Then, you need to download the blog somewhere, you can simply git clone it from the blog-contributions forgejo repository into the /srv/ directory:</p>
<pre><code class="nim">
[ Datura ] [ /dev/pts/23 ] [~]
→ torsocks git clone https://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions /srv/blog/
→ torsocks git clone http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions /srv/blog/
</code></pre>
<p><u>Optional:</u> if you want to also host the archived blog sections i wrote in the past (the hacking and selfhosting categories) you can do so as follows: </p>
@ -110,6 +110,17 @@
</pre></code>
<p>Then we need to make sure that the blog repository stays updated regularly:</p>
<pre><code class="nim">
[ Wonderland ] [ /dev/pts/11 ] [/srv]
→ crontab -e
#blog
@hourly /usr/bin/torsocks /usr/bin/git -C /srv/blog/ pull
@hourly /usr/bin/torsocks /usr/bin/git -C /srv/blog-archive/ pull
</pre></code>
<p>then you can use this nginx configuration (and dont forget to enable it with a symlink to sites-enabled):</p>
<pre><code class="nim">
[ Datura ] [ /dev/pts/23 ] [~]
@ -404,14 +415,14 @@ server {
<div class="col-lg-8 col-lg-offset-2">
<h2><b>Setting up Collaboration</b></h2> </br> </br>
<p>Now if you want to make sure the blog content keeps growing, you'll need to either write your own blogposts in it or setup collaboration:</p>
<p>Now in order to make sure you can welcome external contributions, you need at least to be able to have a forgejo instance like the one i run <a href="https://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/">here</a>:</p>
<p>Now in order to make sure you can welcome external contributions, you need at least to be able to have a forgejo instance like the one i run <a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/">here</a>:</p>
<img src="4.png" class="imgRz">
<img src="5.png" class="imgRz">
<img src="6.png" class="imgRz">
<img src="7.png" class="imgRz">
<img src="8.png" class="imgRz">
<p>Now here you have a simple mirror git repo of the blog, once a day it will synchronize the new changes onto your mirror which is always useful to have in case if the <a href="https://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions">main repository</a> gets taken down.</p>
<p>Now here you have a simple mirror git repo of the blog, once a day it will synchronize the new changes onto your mirror which is always useful to have in case if the <a href="http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions">main repository</a> gets taken down.</p>
<p> If it were to get taken down for whatever reason, or if you decide to branch out and do your own thing with the blog, you can edit the repository to not be a mirror anymore (meaning you'll be able to push your own commits without going through me):</p>
<img src="9.png" class="imgRz">