mirror of
https://github.com/atareao/self-hosted.git
synced 2024-07-04 04:55:40 +02:00
43 lines
606 B
Markdown
43 lines
606 B
Markdown
# Installation
|
|
|
|
Prerequisites,
|
|
|
|
```bash
|
|
sudo apt install apache2-utils
|
|
```
|
|
|
|
```
|
|
git clone https://github.com/atareao/self-hosted.git
|
|
cd self-hosted/traefik
|
|
```
|
|
|
|
Change `FQDN` for your server in `.env`,
|
|
|
|
```bash
|
|
cp sample.env .env
|
|
```
|
|
|
|
Change permissions for `acme.json`,
|
|
|
|
```bash
|
|
chmod 600 ./config/acme.json
|
|
```
|
|
|
|
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
|
|
docker network create proxy
|
|
docker-compose up -d
|
|
docker-compose logs -f
|
|
```
|