Skip to content

Commit

Permalink
Merge pull request #83 from serlo/editor-lti-tool
Browse files Browse the repository at this point in the history
feat: editor as lti tool in staging
  • Loading branch information
hugotiburtino authored Jun 12, 2024
2 parents b502d53 + 2b3846c commit de11153
Show file tree
Hide file tree
Showing 11 changed files with 1,352 additions and 0 deletions.
27 changes: 27 additions & 0 deletions envs/staging/editor.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module "editor" {
source = "../../modules/editor-as-lti-tool"

namespace = kubernetes_namespace.editor_namespace.metadata.0.name
node_pool = module.cluster.node_pools.non-preemptible

dev_mode = true
}

module "editor_ingress" {
source = "../../modules/ingress"

name = "editor"
namespace = kubernetes_namespace.editor_namespace.metadata.0.name
host = "editor.${local.domain}"
backend = {
service_name = module.editor.editor_service_name
service_port = module.editor.editor_service_port
}
enable_tls = true
}

resource "kubernetes_namespace" "editor_namespace" {
metadata {
name = "editor"
}
}
9 changes: 9 additions & 0 deletions modules/cloudflare/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,12 @@ resource "cloudflare_record" "cname_enmeshed" {
type = "CNAME"
proxied = true
}

# editor (Serlo Editor as LTI Tool)
resource "cloudflare_record" "cname_editor" {
zone_id = var.zone_id
name = "editor"
value = var.domain
type = "CNAME"
proxied = true
}
59 changes: 59 additions & 0 deletions modules/editor-as-lti-tool/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit de11153

Please sign in to comment.