diff --git a/dns/services.json b/dns/services.json index 1fca732..120b940 100644 --- a/dns/services.json +++ b/dns/services.json @@ -4,16 +4,6 @@ "domain": "serguzim.me", "host": "node002" }, - "coder": { - "target": "coder", - "domain": "serguzim.me", - "host": "node002" - }, - "coder-wildcard": { - "target": "*.coder", - "domain": "serguzim.me", - "alias": "coder" - }, "faas": { "target": "faas", "domain": "serguzim.me", diff --git a/dnsconfig.js b/dnsconfig.js index b6ae90c..c72bb4e 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -71,9 +71,7 @@ D("serguzim.me", REG_OVH, DnsProvider(DSP_OVH), TLSA("_25._tcp.mail", 3, 1, 1, "e66a608a3ec459bda7fb1f2d500b8abeb78f2910f26641204b6bc454b8aa2a49"), - acme_challenge("coder", "92924f7c-0859-4941-9e3d-2ecedfb21c1b"), acme_challenge("db", "ca2c86c0-ff3d-458a-89e0-11bcfd2543e4"), - acme_challenge("registry", "18a42983-3d19-4c17-8213-fc275a8be721"), verify_amazon_ses([ "dd4g333vxgahaf3rh3dafdx6g7kq7t7z", diff --git a/playbooks/local-dev.yml b/playbooks/local-dev.yml index 80afd91..964e9f7 100644 --- a/playbooks/local-dev.yml +++ b/playbooks/local-dev.yml @@ -11,7 +11,6 @@ - common - acme-dns - - coder - faas - forgejo - forgejo-runner diff --git a/playbooks/node002.yml b/playbooks/node002.yml index 77a3ba2..7fe8b88 100644 --- a/playbooks/node002.yml +++ b/playbooks/node002.yml @@ -19,8 +19,6 @@ tags: [acme-dns, acme_dns, certificates] - role: authentik tags: [authentik, authentication] - - role: coder - tags: [coder, development] - role: extra_services tags: [extra-services] - role: faas diff --git a/roles/coder/tasks/main.yml b/roles/coder/tasks/main.yml deleted file mode 100644 index 6c05ea0..0000000 --- a/roles/coder/tasks/main.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- name: Set common facts - ansible.builtin.import_tasks: tasks/set-default-facts.yml - -- name: Deploy {{ svc.name }} - vars: - svc: "{{ coder_svc }}" - env: "{{ coder_env }}" - compose: "{{ coder_compose }}" - block: - - name: Import tasks to deploy common service - ansible.builtin.import_tasks: tasks/deploy-common-service.yml diff --git a/roles/coder/vars/main.yml b/roles/coder/vars/main.yml deleted file mode 100644 index bf8fabd..0000000 --- a/roles/coder/vars/main.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -coder_svc: - domain: coder.serguzim.me - additional_domains: - - "*.coder.serguzim.me" - caddy_extra: import acmedns - name: coder - port: 7080 - db: - host: "{{ postgres.host }}" - port: "{{ postgres.port }}" - ssh_port: 22 - ssh_port_alt: 3022 - -coder_env: - CODER_ADDRESS: "0.0.0.0:7080" - CODER_ACCESS_URL: https://{{ svc.domain }} - CODER_WILDCARD_ACCESS_URL: "*.{{ svc.domain }}" - - CODER_PG_CONNECTION_URL: postgres://{{ vault_coder.db.user }}:{{ vault_coder.db.pass }}@{{ svc.db.host }}:{{ svc.db.port }}/coder?sslmode=verify-full - - CODER_OIDC_ISSUER_URL: https://auth.serguzim.me/application/o/coder-serguzim-me/ - CODER_OIDC_CLIENT_ID: "{{ vault_coder.oidc_client.id }}" - CODER_OIDC_CLIENT_SECRET: "{{ vault_coder.oidc_client.secret }}" - -coder_compose: - watchtower: true - image: ghcr.io/coder/coder:latest - volumes: - - /var/run/docker.sock:/var/run/docker.sock - file: - services: - app: - group_add: - - "972" # docker group on host