Files
homeAutomation/home-server
2024-12-26 10:52:28 +01:00
..
2024-12-26 10:52:28 +01:00
2024-10-06 13:12:09 +02:00
2024-12-26 10:52:28 +01:00
2024-10-06 13:12:09 +02:00
2024-12-26 10:52:28 +01:00

Server setup

Installation docker

Installation docker compose

Setup VPN client

Follow this tutorial

NOTE: on ubuntu, you need to add a symbolic link in order to enable the VPN (source)

ln -s /usr/bin/resolvectl /usr/local/bin/resolvconf

Start docker-compose

TODO add .sh script to start in production

Tips

When database credentials are not updated after docker restart, consider using

docker compose rm db

To Do

  • Start the VPN client automatically after reboot

Generate self signed certificates

https://stackoverflow.com/questions/10175812/how-to-generate-a-self-signed-ssl-certificate-using-openssl

non-interactive and 10 years expiration

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 -nodes -subj "/C=homeassistant/ST=Belgium/L=Deerlijk/O=Willem/OU=Willem/CN=willem" -subj '/CN=homeassistant.com'