Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
75
fork

Configure Feed

Select the types of activity you want to include in your feed.

caddy config

phil 0dcd8b74 81fbd206

+56 -3
+55 -3
cozy-setup (move to another repo).md
··· 34 34 35 35 links.bsky.bad-example.com { 36 36 reverse_proxy link-aggregator:6789 37 - respond /souin-api/metrics "denied" 403 37 + 38 + @browser `{header.Origin.startsWith("Mozilla/5.0")` 39 + rate_limit { 40 + zone global_burst { 41 + key {remote_host} 42 + events 10 43 + window 1s 44 + } 45 + zone global_general { 46 + key {remote_host} 47 + events 100 48 + window 60s 49 + log_key true 50 + } 51 + zone website_harsh_limit { 52 + key {header.Origin} 53 + match { 54 + expression {header.User-Agent}.startsWith("Mozilla/5.0") 55 + } 56 + events 2 57 + window 15s 58 + log_key true 59 + } 60 + } 61 + respond /souin-api/metrics "denied" 403 # does not work 38 62 cache { 39 63 ttl 3s 40 64 stale 1h ··· 96 120 sudo grafana-cli --pluginUrl https://github.com/VictoriaMetrics/victoriametrics-datasource/releases/download/v0.11.1/victoriametrics-datasource-v0.11.1.zip plugins install victoriametrics 97 121 ``` 98 122 123 + - raspi node_exporter 99 124 125 + ```bash 126 + curl -LO https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-armv7.tar.g 127 + tar xzf node_exporter-1.8.2.linux-armv7.tar.gz 128 + sudo cp node_exporter-1.8.2.linux-armv7/node_exporter /usr/local/bin/ 129 + sudo useradd --no-create-home --shell /bin/false node_exporter 130 + sudo nano /etc/systemd/system/node_exporter.service 131 + # [Unit] 132 + # Description=Node Exporter 133 + # Wants=network-online.target 134 + # After=network-online.target 135 + 136 + # [Service] 137 + # User=node_exporter 138 + # Group=node_exporter 139 + # Type=simple 140 + # ExecStart=/usr/local/bin/node_exporter 141 + # Restart=always 142 + # RestartSec=3 143 + 144 + # [Install] 145 + # WantedBy=multi-user.target 146 + sudo systemctl daemon-reload 147 + sudo systemctl enable node_exporter.service 148 + sudo systemctl start node_exporter.service 149 + ``` 150 + 151 + todo: get raspi vcgencmd outputs into metrics 100 152 101 153 --- 102 154 ··· 108 160 - [x] caddy: reverse proxy 109 161 - [x] build with cache and rate-limit plugins 110 162 - [x] configure systemd to keep it alive 111 - - [ ] configure caddy cache 112 - - [ ] configure caddy rate-limit 163 + - [x] configure caddy cache 164 + - [x] configure caddy rate-limit 113 165 - [ ] configure caddy to use a health check (once it's added) 114 166 - [ ] configure caddy to only expose cache metrics to tailnet :/ 115 167 - [ ] make some grafana dashboards