grafana.jakstys.lt: use http

This commit is contained in:
Motiejus Jakštys 2023-09-23 23:11:44 +03:00
parent 95c4f94a25
commit f98db66b64
1 changed files with 8 additions and 2 deletions

View File

@ -246,11 +246,17 @@
metrics
}
'';
virtualHosts."grafana.jakstys.lt".extraConfig = ''
virtualHosts."grafana.jakstys.lt:443".extraConfig = ''
@denied not remote_ip ${myData.subnets.tailscale.cidr}
abort @denied
redir http://grafana.jakstys.lt{uri}
tls {$CREDENTIALS_DIRECTORY}/grafana.jakstys.lt-cert.pem {$CREDENTIALS_DIRECTORY}/grafana.jakstys.lt-key.pem
'';
virtualHosts."grafana.jakstys.lt:80".extraConfig = ''
@denied not remote_ip ${myData.subnets.tailscale.cidr}
abort @denied
reverse_proxy 127.0.0.1:3000
tls {$CREDENTIALS_DIRECTORY}/grafana.jakstys.lt-cert.pem {$CREDENTIALS_DIRECTORY}/grafana.jakstys.lt-key.pem
'';
virtualHosts."bitwarden.jakstys.lt".extraConfig = ''
@denied not remote_ip ${myData.subnets.tailscale.cidr}