4
terraform/training/files/.gitignore
vendored
Normal file
4
terraform/training/files/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*.tf
|
||||
*.tfstate
|
||||
.terraform.lock.hcl
|
||||
.terraform
|
||||
BIN
terraform/training/files/backend.tf.gpg
Normal file
BIN
terraform/training/files/backend.tf.gpg
Normal file
Binary file not shown.
BIN
terraform/training/files/frontend.tf.gpg
Normal file
BIN
terraform/training/files/frontend.tf.gpg
Normal file
Binary file not shown.
19
terraform/training/files/install-nginx.sh.tpl
Normal file
19
terraform/training/files/install-nginx.sh.tpl
Normal 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
|
||||
|
||||
BIN
terraform/training/files/network.tf.gpg
Normal file
BIN
terraform/training/files/network.tf.gpg
Normal file
Binary file not shown.
BIN
terraform/training/files/output.tf.gpg
Normal file
BIN
terraform/training/files/output.tf.gpg
Normal file
Binary file not shown.
BIN
terraform/training/files/provider.tf.gpg
Normal file
BIN
terraform/training/files/provider.tf.gpg
Normal file
Binary file not shown.
Reference in New Issue
Block a user