Add the basics of some edge caching

This commit is contained in:
Jake Howard
2024-02-21 21:42:16 +00:00
parent b513c88774
commit 808e72553b
10 changed files with 72 additions and 14 deletions

View File

@ -9,8 +9,13 @@ access_log /var/log/nginx/gateway.log gateway;
access_log /var/log/nginx/ips.log ips;
map $ssl_preread_server_name $gateway_destination {
headscale.jakehoward.tech 127.0.0.1:8888;
default {{ wireguard.clients.ingress.ip }}:8443;
default {{ wireguard.clients.ingress.ip }}:8443;
headscale.jakehoward.tech 127.0.0.1:8888;
{% for domain in cdn_domains %}
{{ domain }} 127.0.0.1:8800;
{% endfor %}
}
server {