all repos — birabittoh.github.io @ e11e212760e428a637a03ae4ace53cb0ad89dc58

My current website, built with Zola.

remove repetition
Andronaco Marco marco.andronaco@olivetti.com
Sun, 16 Jul 2023 21:40:09 +0200
commit

e11e212760e428a637a03ae4ace53cb0ad89dc58

parent

9803a83b59ff6adb27c35d09764b7f8d5c42a2cc

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M content/blog/self-host.mdcontent/blog/self-host.md

@@ -55,9 +55,9 @@ ## The right way

Since I started my new job, I also began experimenting with Docker and found out it's not as bad as I thought it'd be. I will now let my previous config serve as the perfect example of how NOT to secure your VPS correctly for any self-hosting configuration. ### Ditch password authentication -First of all, password authentication. You'll be a lot safer as soon as you disable it. +First of all, password authentication. You'll be a lot safer as soon as you disable it. -First of all, having it enabled means you're vulnerable to dictionary and bruteforce attacks. Also, if some new vulnerability is published, the password field is one more way the attacker could send a malicious string to get inside (see [the log4j incident](https://scribe.rip/geekculture/the-log4j-incident-explained-ed0ce6d36df2)). +Having it enabled means you're vulnerable to dictionary and bruteforce attacks. Also, if some new vulnerability is published, the password field is one more way the attacker could send a malicious string to get inside (see [the log4j incident](https://scribe.rip/geekculture/the-log4j-incident-explained-ed0ce6d36df2)). A better way of logging into your VPS is through public key authentication.

@@ -158,7 +158,7 @@ ```

docker network connect swag_default invidious ``` -Finally, you can go to [https://yt.yourdomain.duckdns.org/](https://yt.yourdomain.duckdns.org/) and check if you can access Invidious through HTTPS. +Finally, you can visit https://yt.<yourdomain>.duckdns.org/ and check if you can access Invidious through HTTPS. Note: now that you have a reverse proxy set up, you can remove your `ports:` section entirely from Invidious' `docker-compose.yml`. You can do this because the containers are communicating internally to the `swag_default` network, without the need to expose any ports to the outside.