diff --git a/terraform/fox-api/node.tf b/terraform/fox-api/node/main.tf similarity index 100% rename from terraform/fox-api/node.tf rename to terraform/fox-api/node/main.tf diff --git a/terraform/fox-api/php.tf b/terraform/fox-api/php/main.tf similarity index 93% rename from terraform/fox-api/php.tf rename to terraform/fox-api/php/main.tf index 9040c14..14554ff 100644 --- a/terraform/fox-api/php.tf +++ b/terraform/fox-api/php/main.tf @@ -29,16 +29,6 @@ data "coder_git_auth" "github" { id = "primary-github" } -resource "coder_app" "fox_api" { - agent_id = coder_agent.main.id - slug = "fox-api" - display_name = "F.O.X. API" - icon = "https://media.furality.online/boop/furality.png" - url = "http://localhost:8080" - share = "public" - subdomain = false -} - resource "coder_agent" "main" { arch = data.coder_provisioner.me.arch os = "linux" @@ -60,9 +50,9 @@ resource "coder_agent" "main" { echo "[SETUP] Created ~/.coder-env" fi - if [ ! -d ~/oauth-provider ]; then + if [ ! -d ~/fox-api ]; then echo "[SETUP] Cloning Github Repo" - git clone https://github.com/furality/oauth-provider/ + git clone https://github.com/furality/fox-api/ echo "[SETUP] Git Keys imported" @@ -200,7 +190,7 @@ name = "coder-${data.coder_workspace.me.id}-data" } data "docker_registry_image" "main" { - name = "git.kakio.us/kakious/coder-backend:latest" + name = "git.kakio.us/kakious/backend-php:latest" } resource "docker_image" "main" {