2021-12-13 20:36:37 +01:00
|
|
|
# Installation
|
|
|
|
|
2023-10-04 07:19:03 +02:00
|
|
|
Prerequisites,
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo apt install apache2-utils
|
|
|
|
```
|
|
|
|
|
2021-12-13 20:36:37 +01:00
|
|
|
```
|
2022-01-31 21:02:05 +01:00
|
|
|
git clone https://github.com/atareao/self-hosted.git
|
2022-01-31 06:04:33 +01:00
|
|
|
cd self-hosted/traefik
|
2023-10-04 07:19:03 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Change `FQDN` for your server in `.env`,
|
|
|
|
|
|
|
|
```bash
|
2022-01-31 21:12:04 +01:00
|
|
|
cp sample.env .env
|
2023-10-04 07:19:03 +02:00
|
|
|
```
|
|
|
|
|
2023-10-13 19:40:53 +02:00
|
|
|
Change permissions for `acme.json`,
|
|
|
|
|
|
|
|
```bash
|
|
|
|
chmod 600 ./config/acme.json
|
|
|
|
```
|
2023-10-04 07:19:03 +02:00
|
|
|
|
|
|
|
Generate credentials for your user,
|
|
|
|
|
|
|
|
```bash
|
|
|
|
htpasswd -nb usuario contraseña >> config/users.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
Change the email for letsencrypt,
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sed -i "s/tu@correo.es/<tu-correo>/g" config/traefik.yml
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
2022-02-04 18:18:36 +01:00
|
|
|
docker network create proxy
|
2022-01-31 07:30:23 +01:00
|
|
|
docker-compose up -d
|
|
|
|
docker-compose logs -f
|
2021-12-13 20:38:52 +01:00
|
|
|
```
|