diff options
author | 2024-06-02 13:39:21 +0100 | |
---|---|---|
committer | 2024-06-02 13:45:14 +0100 | |
commit | 930af673854a46b969f3c3f8e3b630cceb4a07eb (patch) | |
tree | f9eea25057a6e4572548120aaf758ce29cac3bca | |
parent | Move files config to new NGINX turing host variables (diff) |
Create new reverse proxying config for Prometheus
-rw-r--r-- | ansible/host_vars/lovelace/nginx.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ansible/host_vars/lovelace/nginx.yml b/ansible/host_vars/lovelace/nginx.yml new file mode 100644 index 0000000..be10ebc --- /dev/null +++ b/ansible/host_vars/lovelace/nginx.yml @@ -0,0 +1,18 @@ +nginx_default_cert_name: lovelace.box.pydis.wtf + +nginx_configs: + prometheus.lovelace.box.wtf.conf: | + server { + listen 443; + server_name prometheus.lovelace.box.pydis.wtf; + + ssl_certificate /etc/letsencrypt/live/prometheus.lovelace.box.pydis.wtf/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/prometheus.lovelace.box.pydis.wtf/privkey.pem; + + ssl_client_certificate /opt/pydis/ca.pem; + ssl_verify_client on; + + location / { + proxy_pass http://localhost:9090; + } + } |