diff --git a/content/articles/blog/restrict-unwanted-access-with-http-basic-auth-nginx-and-apache.md b/content/articles/blog/restrict-unwanted-access-with-http-basic-auth-nginx-and-apache.md index 47a39bbf..1a9380c6 100644 --- a/content/articles/blog/restrict-unwanted-access-with-http-basic-auth-nginx-and-apache.md +++ b/content/articles/blog/restrict-unwanted-access-with-http-basic-auth-nginx-and-apache.md @@ -52,4 +52,4 @@ auth_basic "Administrator’s Area"; auth_basic_user_file /etc/apache2/.htpasswd; ``` -Further readering [here](https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/). +Further reading [here](https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/). diff --git a/public/articles/blog/2024-goals/index.html b/public/articles/blog/2024-goals/index.html index e7d48d17..719a8be0 100644 --- a/public/articles/blog/2024-goals/index.html +++ b/public/articles/blog/2024-goals/index.html @@ -25,7 +25,7 @@ read more update this site visually grow veggies 1. Read Read in Bulgarian Read -

作成日: , 最終更新日:

+

作成日: ; 最終更新日:

kk hi it seems that i have neglected updating this site so i decided to share what i aspire to do in 2024 (even though its almost march):

summarized:

-

作成日: , 最終更新日:

+

作成日: ; 最終更新日:

My server has been getting bussyblasted by spam requests from bots and other subhumans and I figured out a way to block them with NGINX.

Adapt the following for your use case and simply place it in every nginx.conf that is ln -s linked to your /etc/nginx/sites-enabled (it should be under the listen 443 server block if you use certbot. Don’t add it under location it should be on the same level as listen [::]:443 ssl;)

diff --git a/public/articles/blog/how-i-fixed-my-synapse-matrix-federation/index.html b/public/articles/blog/how-i-fixed-my-synapse-matrix-federation/index.html index da52d048..5e90dfe2 100644 --- a/public/articles/blog/how-i-fixed-my-synapse-matrix-federation/index.html +++ b/public/articles/blog/how-i-fixed-my-synapse-matrix-federation/index.html @@ -25,7 +25,7 @@ nano /etc/matrix-synapse/homeserver.yaml and go all the way to the bottom or sea
-

作成日: , 最終更新日:

+

作成日: ; 最終更新日:

Federation issues

I for the life of me couldn’t get synapse’s (matrix’s) federation to work. It said that the encryption couldn’t be trusted, i could join public rooms but i couldn’t start any chats, i couldn’t invite people to my rooms, i couldn’t get invited to rooms.

How I fixed it

diff --git a/public/articles/blog/hugo-drafts-showing-in-production/index.html b/public/articles/blog/hugo-drafts-showing-in-production/index.html index ca5f7004..8b63d077 100644 --- a/public/articles/blog/hugo-drafts-showing-in-production/index.html +++ b/public/articles/blog/hugo-drafts-showing-in-production/index.html @@ -25,7 +25,7 @@ hugo --cleanDestinationDir from https://discourse.gohugo.io/t/drafts-showing-in-
-

作成日: , 最終更新日:

+

作成日: ; 最終更新日:

i had an issue with a draft page appearing on my site even after setting draft: true in the preamble

to fix it - build the website with

diff --git a/public/articles/blog/meta-description-in-hugo/index.html b/public/articles/blog/meta-description-in-hugo/index.html index 31baf503..ceab9bb6 100644 --- a/public/articles/blog/meta-description-in-hugo/index.html +++ b/public/articles/blog/meta-description-in-hugo/index.html @@ -23,7 +23,7 @@
-

作成日: , 最終更新日:

+

作成日: ; 最終更新日:

Adding meta description in Hugo

I assume you are using Luke Smith’s theme - Lugo, if you are not, you’d have to find these files yourself (e.g. search using vscode).

Setting a global meta description

diff --git a/public/articles/blog/multiple-index-pages-in-hugo/index.html b/public/articles/blog/multiple-index-pages-in-hugo/index.html index 7543fd2f..d11f8c9d 100644 --- a/public/articles/blog/multiple-index-pages-in-hugo/index.html +++ b/public/articles/blog/multiple-index-pages-in-hugo/index.html @@ -26,7 +26,7 @@ layouts |----**_default** |-------**hackbook** |-----------**order-by-oldest."/>
-

作成日: , 最終更新日:

Table Of Contents: