Skip to content

Commit

Permalink
Remoded Caddy.
Browse files Browse the repository at this point in the history
  • Loading branch information
samoht9277 committed Dec 9, 2024
1 parent 90115d6 commit b65d425
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 116 deletions.
92 changes: 0 additions & 92 deletions infra/ansible/playbooks/caddy.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions infra/ansible/playbooks/explorer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
vars:
host: explorer

- name: Run caddy playbook
ansible.builtin.import_playbook: caddy.yaml
vars:
host: explorer

- hosts: explorer
vars:
service: "explorer"
Expand All @@ -43,25 +38,6 @@
update: yes

tasks:
- name: Add reverse proxy configuration to Caddyfile
become: true
blockinfile:
path: /etc/caddy/Caddyfile
block: |
{{ caddy_explorer_url }} {
tls {
dns cloudflare {{ caddy_cloudflare_token }}
}
reverse_proxy localhost:{{ caddy_explorer_port }}
}
create: yes
prepend_newline: true
vars:
ansible_ssh_user: "{{ admin_user }}"
caddy_explorer_url: "{{ lookup('ini', 'caddy_explorer_url', file=ini_file) }}"
caddy_explorer_port: 4000
caddy_cloudflare_token: "{{ lookup('ini', 'caddy_cloudflare_token', file=ini_file) }}"

- name: Build the explorer release
args:
chdir: "{{ clone_repo.git_dir_now }}"
Expand Down

0 comments on commit b65d425

Please sign in to comment.