feat: web-arm add fueltide vhost
This commit is contained in:
parent
4709d34b3e
commit
f75f9d1a51
2 changed files with 26 additions and 0 deletions
24
hosts/web-arm/sites/fueltide.io.nix
Normal file
24
hosts/web-arm/sites/fueltide.io.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
domain = "fueltide.cloonar.dev";
|
||||
dataDir = "/var/www/${domain}";
|
||||
in {
|
||||
|
||||
services.webstack.instances."${domain}" = {
|
||||
enablePhp = false;
|
||||
|
||||
authorizedKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIILf3KpvY3sG/l5w4phV3qxOnahFpb7op/8y6i3oLWXv"
|
||||
];
|
||||
|
||||
locations."/".extraConfig = ''
|
||||
index index.html;
|
||||
'';
|
||||
|
||||
locations."~* \.(js|jpg|gif|png|webp|avif|css|woff2)$".extraConfig = ''
|
||||
expires 365d;
|
||||
add_header Pragma "public";
|
||||
add_header Cache-Control "public";
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue