Fix up music stuffs

This commit is contained in:
Salt 2024-08-11 11:08:23 -05:00
parent 7a72280c6e
commit 760af8dabe
3 changed files with 22 additions and 3 deletions

View File

@ -140,9 +140,6 @@
proxy_pass: http://prometheus:9090
# desu.ltd media bullshit
- name: music.desu.ltd
directives:
- "allow {{ common_home_address }}/{{ common_home_address_mask }}"
- "deny all"
proxy_pass: http://navidrome:4533
- name: lidarr.media.desu.ltd
directives:

View File

@ -6,6 +6,7 @@
user: 911:911
env:
ND_BASEURL: "https://music.desu.ltd"
ND_PROMETHEUS_ENABLED: "true"
ND_LOGLEVEL: "info"
networks:
- name: web

View File

@ -81,6 +81,27 @@ scrape_configs:
{# #}
{% endfor %}
{% endfor %}
{% endfor %}
# This job takes in information from Netbox on the generic "prom-metrics" tag
# It's useful for all sorts of stuff
- job_name: "generic"
scheme: "https"
static_configs:
- targets:
{% for host in groups['tags_nagios'] %}
{% set vars = hostvars[host] %}
{% for service in vars.services %}
{% for tag in service.tags %}
{# #}
{% if tag.slug == "prom-metrics" %}
{% for port in service.ports %}
- "{{ service.name }}:{{ port }}"
{% endfor %}
{% endif %}
{# #}
{% endfor %}
{% endfor %}
{% endfor %}
# These two jobs are included for every node in our inventory