Skip to content

Commit

Permalink
Generalize nginx config and proxy prometheus for pis
Browse files Browse the repository at this point in the history
  • Loading branch information
evroon committed Mar 20, 2024
1 parent 787c6a5 commit a3e2e4a
Show file tree
Hide file tree
Showing 27 changed files with 63 additions and 20 deletions.
3 changes: 3 additions & 0 deletions ansible/provision.yml

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

2 changes: 1 addition & 1 deletion ansible/roles/grafana/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ scrape_configs:

- job_name: esp32
static_configs:
- targets: ["{{ esp32_host }}:4040"]
- targets: ["andromeda:4040"]
relabel_configs: *instance_relabel_config

- job_name: wireguard-exporter
Expand Down

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

18 changes: 18 additions & 0 deletions ansible/roles/nginx-dmz/tasks/main.yml

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

33 changes: 33 additions & 0 deletions ansible/roles/nginx-prometheus-proxy/tasks/main.yml

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
server {
listen 4040;

location / {
proxy_pass {{ esp32_host_addr }};
}
}
18 changes: 0 additions & 18 deletions ansible/roles/nginx/tasks/main.yml

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

0 comments on commit a3e2e4a

Please sign in to comment.