mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions.git
synced 2025-07-02 11:56:40 +00:00
a good fuckin update
This commit is contained in:
parent
7b3f8ea7ed
commit
1f6ed2fa82
80 changed files with 534 additions and 534 deletions
|
@ -46,7 +46,7 @@
|
|||
|
||||
<li><a href="/about.html">About</a></li>
|
||||
<li><a href="/blog.html">Categories</a></li>
|
||||
<li><a href="https://blog.nihilism.network/donate.html">Donate</a></li>
|
||||
<li><a href="https://blog.nowhere.moe/donate.html">Donate</a></li>
|
||||
<li><a href="/contact.html">Contact</a></li>
|
||||
</ul>
|
||||
</div><!--/.nav-collapse -->
|
||||
|
@ -92,7 +92,7 @@ cd /srv/matrix
|
|||
</code></pre>
|
||||
<p>Then we'll create the docker-compose.yml file and the generateconfig.sh script:</p>
|
||||
<pre><code class="nim">
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ cat docker-compose.yml
|
||||
version: "3.3"
|
||||
|
||||
|
@ -105,10 +105,10 @@ services:
|
|||
volumes:
|
||||
- "./data:/data" #it will look at the current directory where you save the file and look for the data folder inside
|
||||
environment:
|
||||
VIRTUAL_HOST: "m.datura.network"
|
||||
VIRTUAL_HOST: "m.nowhere.moe"
|
||||
VIRTUAL_PORT: 8008
|
||||
LETSENCRYPT_HOST: "m.datura.network"
|
||||
SYNAPSE_SERVER_NAME: "m.datura.network"
|
||||
LETSENCRYPT_HOST: "m.nowhere.moe"
|
||||
SYNAPSE_SERVER_NAME: "m.nowhere.moe"
|
||||
SYNAPSE_REPORT_STATS: "yes"
|
||||
coturn:
|
||||
image: instrumentisto/coturn:latest
|
||||
|
@ -125,42 +125,42 @@ networks:
|
|||
mybridge:
|
||||
driver: bridge
|
||||
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ cat generateconfig.sh
|
||||
#!/bin/bash
|
||||
|
||||
docker-compose run --rm -e SYNAPSE_SERVER_NAME=m.datura.network -e SYNAPSE_REPORT_STATS=yes synapse generate
|
||||
docker-compose run --rm -e SYNAPSE_SERVER_NAME=m.nowhere.moe -e SYNAPSE_REPORT_STATS=yes synapse generate
|
||||
|
||||
</code></pre>
|
||||
<p>My matrix server will have the "m.datura.network" domain name. The coturn config mentionned here is used for the VOIP support. Now let's generate the initial keys of the matrix server like so:</p>
|
||||
<p>My matrix server will have the "m.nowhere.moe" domain name. The coturn config mentionned here is used for the VOIP support. Now let's generate the initial keys of the matrix server like so:</p>
|
||||
<pre><code class="nim">
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ ./generateconfig.sh
|
||||
Creating network "matrix_default" with the default driver
|
||||
Creating network "matrix_mybridge" with driver "bridge"
|
||||
Setting ownership on /data to 991:991
|
||||
Creating log config /data/m.datura.network.log.config
|
||||
Creating log config /data/m.nowhere.moe.log.config
|
||||
Generating config file /data/homeserver.yaml
|
||||
Generating signing key file /data/m.datura.network.signing.key
|
||||
A config file has been generated in '/data/homeserver.yaml' for server name 'm.datura.network'. Please review this file and customise it to your needs.
|
||||
Generating signing key file /data/m.nowhere.moe.signing.key
|
||||
A config file has been generated in '/data/homeserver.yaml' for server name 'm.nowhere.moe'. Please review this file and customise it to your needs.
|
||||
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ ls
|
||||
coturn data docker-compose.yml docker-compose.yml.coturn generateconfig.sh m.datura.network.conf.nginx
|
||||
coturn data docker-compose.yml docker-compose.yml.coturn generateconfig.sh m.nowhere.moe.conf.nginx
|
||||
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ ls data -lash
|
||||
total 20K
|
||||
4.0K drwxr-xr-x 2 991 991 4.0K Jan 14 11:12 .
|
||||
4.0K drwxr-xr-x 4 root root 4.0K Jan 4 13:50 ..
|
||||
4.0K -rw-r--r-- 1 root root 1.3K Jan 14 11:12 homeserver.yaml
|
||||
4.0K -rw-r--r-- 1 root root 694 Jan 14 11:12 m.datura.network.log.config
|
||||
4.0K -rw-r--r-- 1 root root 59 Jan 14 11:12 m.datura.network.signing.key
|
||||
4.0K -rw-r--r-- 1 root root 694 Jan 14 11:12 m.nowhere.moe.log.config
|
||||
4.0K -rw-r--r-- 1 root root 59 Jan 14 11:12 m.nowhere.moe.signing.key
|
||||
|
||||
</code></pre>
|
||||
<p>Now that's done, we can edit the homeserver.yaml if you want to remove trust into the "matrix.org" keys for federation to make it a truly private server:</p>
|
||||
<pre><code class="nim">
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ cat data/homeserver.yaml | grep server
|
||||
|
||||
trusted_key_servers:
|
||||
|
@ -169,15 +169,15 @@ trusted_key_servers:
|
|||
</code></pre>
|
||||
<p>Then we can edit the coturn config like so:</p>
|
||||
<pre><code class="nim">
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ ls
|
||||
coturn data docker-compose.yml docker-compose.yml.coturn generateconfig.sh m.datura.network.conf.nginx
|
||||
coturn data docker-compose.yml docker-compose.yml.coturn generateconfig.sh m.nowhere.moe.conf.nginx
|
||||
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ cat coturn/turnserver.conf
|
||||
use-auth-secret
|
||||
static-auth-secret=cuAWWAAWWAAWWAWADDWADWADWADWADWADWAWADDWADWWADWADDWADWDWoy
|
||||
realm=m.datura.network
|
||||
realm=m.nowhere.moe
|
||||
listening-port=3478
|
||||
tls-listening-port=5349
|
||||
min-port=47160
|
||||
|
@ -187,9 +187,9 @@ allow-loopback-peers
|
|||
cli-password=cuAWWAAWWAAWWAWADDWADWADWADWADWADWAWADDWADWWADWADDWADWDWoy
|
||||
external-ip=116.202.216.190
|
||||
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ cat data/homeserver.yaml | grep turn
|
||||
turn_uris: [ "turn:m.datura.network?transport=udp", "turn:m.datura.network?transport=tcp" ]
|
||||
turn_uris: [ "turn:m.nowhere.moe?transport=udp", "turn:m.nowhere.moe?transport=tcp" ]
|
||||
turn_shared_secret: "cuAWWAAWWAAWWAWADDWADWADWADWADWADWAWADDWADWWADWADDWADWDWoy"
|
||||
turn_user_lifetime: 86400000
|
||||
turn_allow_guests: true
|
||||
|
@ -198,14 +198,14 @@ turn_allow_guests: true
|
|||
</code></pre>
|
||||
<p>Make sure the ports match the ones in the docker-compose.yml file, and the external IP is the one of your server:</p>
|
||||
<pre><code class="nim">
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ curl ifconfig.me -4
|
||||
116.202.216.190
|
||||
|
||||
</code></pre>
|
||||
<p>Then we start the docker-compose:</p>
|
||||
<pre><code class="nim">
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ docker-compose up -d
|
||||
Creating matrix_coturn_1 ... done
|
||||
Creating matrix_synapse ... done
|
||||
|
@ -213,14 +213,14 @@ Creating matrix_synapse ... done
|
|||
</code></pre>
|
||||
<p>Then we create the accounts like so:</p>
|
||||
<pre><code class="nim">
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ docker container ls | grep matrixdot
|
||||
134d440b1480 matrixdotorg/synapse:latest "/start.py" About a minute ago Up 25 seconds (healthy) 8009/tcp, 0.0.0.0:8008->8008/tcp, :::8008->8008/tcp, 8448/tcp matrix_synapse
|
||||
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ docker exec -it 134 bash
|
||||
root@134d440b1480:/#
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ docker exec -it 134 bash
|
||||
|
||||
root@134d440b1480:/# register_new_matrix_user -c /data/homeserver.yaml http://localhost:8008
|
||||
|
@ -237,8 +237,8 @@ exit
|
|||
</code></pre>
|
||||
<p>Then we make sure that we can access the matrix server via nginx:</p>
|
||||
<pre><code class="nim">
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ cat /etc/nginx/sites-enabled/m.datura.network.conf
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ cat /etc/nginx/sites-enabled/m.nowhere.moe.conf
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
@ -247,10 +247,10 @@ server {
|
|||
listen 8448 ssl http2;
|
||||
listen [::]:8448 ssl http2;
|
||||
|
||||
server_name m.datura.network;
|
||||
server_name m.nowhere.moe;
|
||||
|
||||
ssl_certificate /etc/acme/certs/m.datura.network/fullchain.cer;
|
||||
ssl_certificate_key /etc/acme/certs/m.datura.network/m.datura.network.key;
|
||||
ssl_certificate /etc/acme/certs/m.nowhere.moe/fullchain.cer;
|
||||
ssl_certificate_key /etc/acme/certs/m.nowhere.moe/m.nowhere.moe.key;
|
||||
|
||||
location ~ ^(/_matrix|/_synapse/client) {
|
||||
# note: do not add a path (even a single /) after the port in `proxy_pass`,
|
||||
|
@ -270,7 +270,7 @@ server {
|
|||
}
|
||||
}
|
||||
|
||||
[ Datura-Network ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
[ nowhere.moe ] [ /dev/pts/1 ] [/srv/matrix]
|
||||
→ nginx -t
|
||||
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
|
||||
nginx: configuration file /etc/nginx/nginx.conf test is successful
|
||||
|
@ -318,14 +318,14 @@ nginx: configuration file /etc/nginx/nginx.conf test is successful
|
|||
<h4>My Links</h4>
|
||||
<p>
|
||||
|
||||
<a target="_blank" rel="noopener noreferrer" href="http://blog.nihilism.network/rss/feed.xml">RSS Feed</a><br/><a target="_blank" rel="noopener noreferrer" href="https://matrix.to/#/#nihilism:m.datura.network">Matrix Chat</a><br/>
|
||||
<a target="_blank" rel="noopener noreferrer" href="http://blog.nowhere.moe/rss/feed.xml">RSS Feed</a><br/><a target="_blank" rel="noopener noreferrer" href="https://matrix.to/#/#nihilism:m.nowhere.moe">Matrix Chat</a><br/>
|
||||
|
||||
</p>
|
||||
</div><!-- /col-lg-4 -->
|
||||
|
||||
<div class="col-lg-4">
|
||||
<h4>About nihilist</h4>
|
||||
<p style="word-wrap: break-word;"><u>Donate XMR:</u> 8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8</p></br><p><u>Contact:</u> nihilist@nihilism.network (<a href="https://nihilism.network/nihilist.pubkey">PGP</a>)</p>
|
||||
<p style="word-wrap: break-word;"><u>Donate XMR:</u> 8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8</p></br><p><u>Contact:</u> nihilist@nowhere.moe (<a href="https://nowhere.moe/nihilist.pubkey">PGP</a>)</p>
|
||||
</div><!-- /col-lg-4 -->
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue