From 66d24c32b446d40cfb3fd7524fbda3c6760361f2 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 4 May 2026 00:02:08 +0800 Subject: [PATCH] Initial server config backup --- Caddyfile | 31 +++++++++++++++++++++++++++++++ prometheus.yml | 11 +++++++++++ 2 files changed, 42 insertions(+) create mode 100644 Caddyfile create mode 100644 prometheus.yml diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..ae239c0 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,31 @@ +# The Caddyfile is an easy way to configure your Caddy web server. +# +# Unless the file starts with a global options block, the first +# uncommented line is always the address of your site. +# +# To use your own domain name (with automatic HTTPS), first make +# sure your domain's A/AAAA DNS records are properly pointed to +# this machine's public IP, then replace ":80" below with your +# domain name. + +b510.duckdns.org { + reverse_proxy 127.0.0.1:8080 +} + +status-b510.duckdns.org { + reverse_proxy 127.0.0.1:3001 +} + +memos-b510.duckdns.org { + reverse_proxy 127.0.0.1:5230 +} + +grafana-b510.duckdns.org { + reverse_proxy 127.0.0.1:3000 +} + +git-b510.duckdns.org { + reverse_proxy 127.0.0.1:3002 +} +# Refer to the Caddy docs for more information: +# https://caddyserver.com/docs/caddyfile diff --git a/prometheus.yml b/prometheus.yml new file mode 100644 index 0000000..edc876f --- /dev/null +++ b/prometheus.yml @@ -0,0 +1,11 @@ +global: + scrape_interval: 15s + +scrape_configs: + - job_name: "node-exporter" + static_configs: + - targets: ["127.0.0.1:9100"] + + - job_name: "prometheus" + static_configs: + - targets: ["127.0.0.1:9090"]