Skip to content

Commit

Permalink
Merge pull request #94 from serlo/feat/lti-integration-mysql-database…
Browse files Browse the repository at this point in the history
…-url

feat(editor): add mysql database url env var for lti integration
  • Loading branch information
hugotiburtino authored Jul 9, 2024
2 parents fadc72b + faf7f8c commit 97cbe9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions envs/staging/editor.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module "editor" {

dev_mode = true

mysql_database_url = "mysql://serlo:${var.athene2_database_password_default}@${module.mysql.database_private_ip_address}:3306/serlo"

lti_platform_client_id = var.editor_lti_platform_client_id
}

Expand Down
8 changes: 8 additions & 0 deletions modules/editor-as-lti-tool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ variable "dev_mode" {
type = bool
}

variable "mysql_database_url" {
type = string
}

variable "lti_platform_client_id" {
type = string
}
Expand Down Expand Up @@ -76,6 +80,10 @@ resource "kubernetes_deployment" "editor_as_lti_tool" {
name = "MONGODB_CONNECTION_URI"
value = "mongodb://root:${random_password.mongodb_root_password.result}@${helm_release.database.name}:27017/?authSource=admin&readPreference=primary&ssl=false"
}
env {
name = "MYSQL_URI"
value = var.mysql_database_url
}
env {
name = "LTI_PLATFORM_URL"
value = local.lti_platform_url
Expand Down

0 comments on commit 97cbe9a

Please sign in to comment.