From 6474bb13a47b9e1767b246ec54c0c4d7a435120d Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Mon, 28 Nov 2022 13:52:28 +0100 Subject: [PATCH] Update readme Signed-off-by: Bensuperpc --- README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6794869..92eb3c0 100644 --- a/README.md +++ b/README.md @@ -55,10 +55,16 @@ cd infrastructure ### 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 ```sh -cp nginx-conf nginx-conf-original +cp -r nginx-conf nginx-conf-original ``` 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 ``` +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 You can follow the [README.md](bensuperpc_website/README.md) to install the Flask website.