docs(en): Fix automation explanation

This commit is contained in:
Inex Code 2023-05-02 15:16:55 +03:00
parent 496f1720bf
commit 13befaf0d9
1 changed files with 23 additions and 10 deletions

View File

@ -4,15 +4,15 @@ linkTitle: "How automation works"
date: 2023-04-27T
weight: 2
description: >
SelfPrivacy tries to automate all the steps of server setup and management so that it does not take time and provides the user with only the final finished service.
SelfPrivacy tries to automate all steps of the server setup and management so it does not take much time.
---
Self-hosted means "independent server hosting" or "hosting yourself. This is when IT people do not use popular services like google, they install free (like freedom) alternatives on their own or rented servers (VPS). It turns out that you get the same service, but under your own control. Often free analogues will be more functional, private and secure than free ready-made options from large companies.
Self-hosted means "independent server hosting" or "hosting yourself". This is when IT people do not use popular services like Google, they install free (like freedom) alternatives on their own or rented servers (VPS). It turns out that you get the same service, but under your own control. Often, free analogues will be more functional, private and secure than free off-the-shelf options from big companies.
Self-hosting provides complete privacy of data, including meta-information. But it also imposes an obligation to manually operate the system:
- You need to set up a domain for the application and a TLS certificate;
- You need to take care of the security of the server;
- You need to take care of the server security;
- Do not miss critical security updates;
- Make regular backups;
- Make sure that the disk does not overflow;
@ -21,72 +21,85 @@ Self-hosting provides complete privacy of data, including meta-information. But
For an IT person, the tasks are manageable, even though they are troublesome. But for the rest of us, they are almost unbearable. The task of SelfPrivacy is to simplify this process as much as possible. You don't need to use a console or be a skilled technician. The program automates all for you.
## Domain Management
__*Full automation*__
Once you have configured your domain on CloudFlare and copied the API key into the SelfPrivacy application - your domain is managed completely automatically:
Once you have configured your domain on CloudFlare and copied the API key into the SelfPrivacy application — your domain is managed completely automatically:
- Records are created for all services;
- Updated if necessary;
All you have to do is pay for the domain once a year at your registrar. Don't forget to check your email account.
## Certificate management
__*Full automation*__
Security of interaction with your server is ensured by TLS ≥ v.1.2, like in banks. For this purpose SelfPrivacy uses a certificate from Let's Ecncypt, the world's most popular provider trusted by millions of web portals.
Security of communication with your server is ensured by TLS ≥ v.1.2, like in banks. For this purpose SelfPrivacy uses a certificate from Let's Ecncypt, the world's most popular provider trusted by millions of web portals.
## Updating the operating system on your server
__*Full automation*__
A once-configured server is not completely secure. Over time, bugs may appear in the services, and the server becomes susceptible to hacking. Unfortunately, this is not such a rare occurrence. That's why responsible IT professionals regularly update their servers. SelfPrivacy does it for you.
- System updates;
- Major NixOS release;
- Major NixOS releases;
## Updating the server part of SelfPrivacy
__*Partial automation*__
SelfPrivacy consists of two parts - an app on your device, such as your phone or PC, and a server backend called the SelfPrivacy API. SelfPrivacy manages your service providers and your server. To do this, the SelfPrivacy API backend daemon runs on the server side. It also needs to be updated, for example when we add functionality or fix bugs.
Updating often happens automatically, but sometimes you have to manually confirm a system configuration update to make the new features of the SelfPrivacy server side work.
## Updating SelfPrivacy
__*Full automation*__
The SelfPrivacy application, roughly speaking, is a set of instructions that change something in the server. The work of the application after the initial configuration in no way affects the performance of services on your server. Nevertheless, every day we try to automate something, fix something, add new functionality.
Application updates are done automatically from the repository, such as F-Droid, in the near future App Store and Google Play.
## Server resource management
__*Partial automation*__
When there are a lot of users or services. The server can start to slow down.
When there are a lot of users or services, the server can start to slow down.
Through the application you can monitor the current resource consumption, and soon it will be possible to order an upgrade of the virtual machine.
## Disk management
__*Partial automation*__
The application keeps track of the free space on the server disks and allows you to transfer data between them. If the partition is expandable, the app can automatically order more space after user confirmation.
## Rescue copies
__*Full automation*__
Backups allow you to both repair broken servers and migrate from one server to another. All backups are encrypted, under the hood we use Restic. Each service's data is backed up individually.
Backups can also be done automatically at user-defined intervals.
## User Management
__*Partial automation*__
__*Partial automation*__
Each service has its own administrator interface that allows you to manage users. However, we are working to integrate this functionality into the application and automatically create users from a common list.
## Manual management via SSH (expert)
__*Manual operations*__
For security reasons, access to SelfPrivacy server administration via SSH is disabled by default. This reduces the attack surface. Console access is needed in exceptional cases:
- Upgrade error, or fixing contingencies;
- Upgrade error, or fixing unexpected situations;
- Server tuning, if you are an experienced NixOS user and want to tweak SelfPrivacy Server for your own needs;
In normal operation, the user does not need to use SSH administration through the console.
We are working to ensure that the general configuration of SelfPrivacy can be extended with your own Nix files, which will not interfere with automatic updates.
## The system is very complex, why is it private?
Unlike Cloudron, our commercial unitholders, all transactions take place between your application, your server, and your service providers without SelfPrivacy being involved. Your copy of SelfPrivacy App is completely autonomous and independent in managing your infrastructure. No information about your interactions with your infrastructure reaches SelfPrivacy. All backups of your services leave your server in a fully encrypted form.
All transactions take place between your application, your server, and your service providers without SelfPrivacy being involved. Your copy of SelfPrivacy App is completely autonomous and independent in managing your infrastructure. No information about your interactions with your infrastructure reaches SelfPrivacy. All backups of your services leave your server in a fully encrypted form.
You can read more about this in our [privacy policy.](https://selfprivacy.org/en/docs/about-us/policy/).