mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-11-10 04:07:26 +01:00
Update readme
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
d9b5638732
commit
6474bb13a4
26
README.md
26
README.md
@ -55,10 +55,16 @@ cd infrastructure
|
|||||||
|
|
||||||
### Get the SSL certificate
|
### Get the SSL certificate
|
||||||
|
|
||||||
|
For all **bensuperpc.org**, you need to replace it with your domain, example: **bensuperpc.com**
|
||||||
|
|
||||||
|
```sh
|
||||||
|
find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/bensuperpc.org/bensuperpc.com/g'
|
||||||
|
```
|
||||||
|
|
||||||
Keep original config file
|
Keep original config file
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cp nginx-conf nginx-conf-original
|
cp -r nginx-conf nginx-conf-original
|
||||||
```
|
```
|
||||||
|
|
||||||
Remove the old config file
|
Remove the old config file
|
||||||
@ -109,6 +115,24 @@ Now you can replace the certbot commands in _docker-compose.yml_ with the origin
|
|||||||
command: certonly --webroot --webroot-path=/var/www/html --email bensuperpc@bensuperpc.fr --agree-tos --rsa-key-size 4096 --no-eff-email --verbose --noninteractive --keep-until-expiring --domain www.bensuperpc.org --domain bensuperpc.org
|
command: certonly --webroot --webroot-path=/var/www/html --email bensuperpc@bensuperpc.fr --agree-tos --rsa-key-size 4096 --no-eff-email --verbose --noninteractive --keep-until-expiring --domain www.bensuperpc.org --domain bensuperpc.org
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Remove the cert config file
|
||||||
|
|
||||||
|
```sh
|
||||||
|
rm -fr nginx-conf
|
||||||
|
```
|
||||||
|
|
||||||
|
Copy _nginx-conf-original_ to _nginx-conf_, for definitive use
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cp -r nginx-conf-original nginx-conf
|
||||||
|
```
|
||||||
|
|
||||||
|
Now you start services
|
||||||
|
|
||||||
|
```sh
|
||||||
|
make start-at
|
||||||
|
```
|
||||||
|
|
||||||
### Flask website
|
### Flask website
|
||||||
|
|
||||||
You can follow the [README.md](bensuperpc_website/README.md) to install the Flask website.
|
You can follow the [README.md](bensuperpc_website/README.md) to install the Flask website.
|
||||||
|
Loading…
Reference in New Issue
Block a user