Add files subdomain vhost
This commit is contained in:
parent
a2b855214b
commit
0a535c1c4e
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue