mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 17:45:14 +01:00
prometheus
This commit is contained in:
parent
0d39279ac9
commit
ec7be408a1
5 changed files with 58 additions and 3 deletions
|
|
@ -10,8 +10,17 @@
|
|||
|
||||
insecure true
|
||||
}
|
||||
|
||||
servers {
|
||||
metrics
|
||||
}
|
||||
}
|
||||
|
||||
http:// {
|
||||
respond "This is an HTTPS-only server, silly you. Go to https:// instead." 418
|
||||
}
|
||||
|
||||
# HTTP
|
||||
:9010 {
|
||||
metrics /metrics
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ in
|
|||
{
|
||||
environment.systemPackages = [ caddy ];
|
||||
|
||||
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 9010 ]; # metrics
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [
|
||||
80 # HTTP
|
||||
|
|
@ -54,7 +56,7 @@ in
|
|||
if name == "vps1" || name == "vps3" || name == "vps4" then ''
|
||||
noratrieb.dev {
|
||||
encode zstd gzip
|
||||
header -Last-Modified
|
||||
header -Last-Modified2a01:4f8:1c1c:cb18::
|
||||
root * ${import ./caddy-static-prepare {
|
||||
name = "website";
|
||||
src = website { inherit pkgs slides blog; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue