commit 419bbf7f634e0537b915d7973a1cee7268379277 Author: Sacha Ligthert Date: Thu Oct 20 18:39:53 2022 +0200 Site + TF diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d976089 --- /dev/null +++ b/.gitignore @@ -0,0 +1,50 @@ +.terraform* + +# Local .terraform directories +**/.terraform/* + +# .tfstate files +*.tfstate +*.tfstate.* + +# Crash log files +crash.log +crash.*.log + +# Exclude all .tfvars files, which are likely to contain sensitive data, such as +# password, private keys, and other secrets. These should not be part of version +# control as they are data points which are potentially sensitive and subject +# to change depending on the environment. +*.tfvars +*.tfvars.json + +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Include override files you do wish to add to version control using negated pattern +# !example_override.tf + +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* + +# Ignore CLI configuration files +.terraformrc +terraform.rc + +# Generated files by hugo +/public/ +/resources/_gen/ +/assets/jsconfig.json +hugo_stats.json + +# Executable may be added to repository +hugo.exe +hugo.darwin +hugo.linux + +# Temporary lock file while building +/.hugo_build.lock \ No newline at end of file diff --git a/site/.gitignore b/site/.gitignore new file mode 100644 index 0000000..b7f3e8d --- /dev/null +++ b/site/.gitignore @@ -0,0 +1,48 @@ +# Generated files by hugo +/public/ +/resources/_gen/ +/assets/jsconfig.json +hugo_stats.json + +# Executable may be added to repository +hugo.exe +hugo.darwin +hugo.linux + +# Temporary lock file while building +/.hugo_build.lock + +# Local .terraform directories +**/.terraform/* + +# .tfstate files +*.tfstate +*.tfstate.* + +# Crash log files +crash.log +crash.*.log + +# Exclude all .tfvars files, which are likely to contain sensitive data, such as +# password, private keys, and other secrets. These should not be part of version +# control as they are data points which are potentially sensitive and subject +# to change depending on the environment. +*.tfvars +*.tfvars.json + +# Ignore override files as they are usually used to override resources locally and so +# are not checked in +override.tf +override.tf.json +*_override.tf +*_override.tf.json + +# Include override files you do wish to add to version control using negated pattern +# !example_override.tf + +# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan +# example: *tfplan* + +# Ignore CLI configuration files +.terraformrc +terraform.rc \ No newline at end of file diff --git a/site/archetypes/default.md b/site/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/site/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/site/config.toml b/site/config.toml new file mode 100644 index 0000000..0ba451d --- /dev/null +++ b/site/config.toml @@ -0,0 +1,32 @@ +baseURL = "blog.ligthert.net" +languageCode = "en-us" +title = "Sacha's Blog" +theme = "m10c" + +[params] + author = "Sacha Ligthert" + description = "Things that keep me occupied, or things I just like to share with you." + avatar = "/static/hawgface.jpg" + #favicon = "/static/favicon_blog.jpg" + +[[menu.main]] + identifier = "site" + name = "Site" + url = "https://sacha.ligthert.net/" + +[[menu.main]] + identifier = "fedi" + name = "Fedi" + url = "https://mastodon.nl/@ligthert" + +[[menu.main]] + identifier = "gitea" + name = "Gitea" + url = "https://gitea.ligthert.net/" + +[params.style] + darkestColor = "#eeeeee" + darkColor = "#ffffff" + lightColor = "#000000" + lightestColor = "#000000" + primaryColor = "#000000" \ No newline at end of file diff --git a/site/content/posts/my-first-post.md b/site/content/posts/my-first-post.md new file mode 100644 index 0000000..2e80edd --- /dev/null +++ b/site/content/posts/my-first-post.md @@ -0,0 +1,8 @@ +--- +title: "My First Post" +date: 2022-10-20T11:44:27+02:00 +draft: true +--- +# FIP +My First Post! =) +More text! :-) \ No newline at end of file diff --git a/site/content/static/favicon_blog.png b/site/content/static/favicon_blog.png new file mode 100644 index 0000000..f72e925 Binary files /dev/null and b/site/content/static/favicon_blog.png differ diff --git a/site/content/static/hawgface.jpg b/site/content/static/hawgface.jpg new file mode 100644 index 0000000..2da9007 Binary files /dev/null and b/site/content/static/hawgface.jpg differ diff --git a/terraform.tf b/terraform.tf new file mode 100644 index 0000000..b91e469 --- /dev/null +++ b/terraform.tf @@ -0,0 +1,167 @@ +# Terraform, compulsary. +terraform { + required_providers { + aws = { + source = "hashicorp/aws" + version = "~> 4.16.0" + } + } + required_version = ">= 0.15" +} + +# Providers! +# S3 Bucket in Ireland +provider "aws" { + region = "eu-west-1" +} + +# Global for Certificates +provider "aws" { + region = "us-east-1" + alias = "global" +} + +# Variables +variable "domainname" { + type = string + default = "blog.ligthert.net" +} + +# +# +# + +# +# +# \ No newline at end of file