Add files subdomain vhost

This commit is contained in:
Oliver Davies 2025-01-16 08:03:15 +00:00
parent a2b855214b
commit 0a535c1c4e
2 changed files with 16 additions and 0 deletions

View file

@ -2,6 +2,7 @@
imports = [
./2020.oliverdavies.uk.nix
./bootstrap-with-tailwind.oliverdavies.uk.nix
./files.oliverdavies.uk.nix
./florida-drupalcamp-tailwind-css.oliverdavies.uk.nix
./luke.oliverdavies.uk.nix
./phpsw-sculpin-demo.oliverdavies.uk.nix

View file

@ -0,0 +1,15 @@
{
services.caddy.virtualHosts."files.oliverdavies.uk" = {
useACMEHost = "oliverdavies.uk";
extraConfig = ''
file_server {
header Content-Disposition "attachment"
}
root * /var/www/vhosts/files.oliverdavies.uk
header X-Robots-Tag "noindex, nofollow"
'';
};
}