Skip to content

Commit

Permalink
binary-cache: hardcode caddy domain
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Rosten <[email protected]>
  • Loading branch information
henrirosten committed Jan 9, 2024
1 parent 30de47d commit deb0a52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions hosts/binary-cache/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}
# Proxy a subset of requests to rclone.
https://{$SITE_ADDRESS} {
https://ghaf-binary-cache.northeurope.cloudapp.azure.com {
handle /nix-cache-info {
reverse_proxy unix///run/rclone-http/socket
}
Expand All @@ -90,8 +90,6 @@
""
"${pkgs.caddy}/bin/caddy run --environ --config ${config.services.caddy.configFile}/Caddyfile"
];
systemd.services.caddy.serviceConfig.EnvironmentFile = "/run/caddy.env";

# Wait for cloud-init mounting before we start caddy.
systemd.services.caddy.after = ["cloud-init.service"];
systemd.services.caddy.requires = ["cloud-init.service"];
Expand Down
4 changes: 0 additions & 4 deletions terraform/jenkins/binary_cache.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ module "binary_cache_vm" {
content = "AZURE_STORAGE_ACCOUNT_NAME=${azurerm_storage_account.binary_cache.name}",
"path" = "/var/lib/rclone-http/env"
},
{
content = "SITE_ADDRESS=ghaf-binary-cache.northeurope.cloudapp.azure.com",
"path" = "/run/caddy.env"
},
],
})])

Expand Down

0 comments on commit deb0a52

Please sign in to comment.