feat: web-arm add fueltide vhost
This commit is contained in:
@@ -13,6 +13,8 @@
|
|||||||
./support.cloonar.dev.nix
|
./support.cloonar.dev.nix
|
||||||
./stage.cloonar-technologies.at.nix
|
./stage.cloonar-technologies.at.nix
|
||||||
|
|
||||||
|
./fueltide.io.nix
|
||||||
|
|
||||||
./stage.scana11y.com.nix
|
./stage.scana11y.com.nix
|
||||||
./scana11y.com.nix
|
./scana11y.com.nix
|
||||||
|
|
||||||
|
|||||||
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";
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user