1
0
Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
This commit is contained in:
Arnaud Morin
2022-03-23 23:56:51 +01:00
parent 18d80d1be3
commit 0a03f5bb81
10 changed files with 93 additions and 1 deletions

4
terraform/training/files/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
*.tf
*.tfstate
.terraform.lock.hcl
.terraform

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,19 @@
#!/bin/bash
apt-get update
apt-get install -y nginx python3-certbot-nginx certbot
cat <<EOF > /etc/nginx/sites-enabled/default
server {
listen 80;
server_name ${frontend}.xip.opensteak.fr;
listen [::]:80;
access_log /var/log/nginx/reverse-access.log;
error_log /var/log/nginx/reverse-error.log;
location / { proxy_pass http://${backend}:8080; }
}
EOF
systemctl restart nginx
# certbot
certbot run --agree-tos --register-unsafely-without-email --non-interactive --nginx --redirect --domain ${frontend}.xip.opensteak.fr

Binary file not shown.

Binary file not shown.

Binary file not shown.