Skip to content

Commit

Permalink
modules/website: init
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Sep 13, 2023
1 parent 650ab02 commit e0e8ea7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ in {
[
./alpha
../modules/vaultwarden.nix
../modules/website.nix
inputs.srvos.nixosModules.mixins-nginx
]
++ shared_modules;
Expand Down
9 changes: 9 additions & 0 deletions modules/website.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
services.nginx.virtualHosts."fufexan.net" = {
root = "/var/www/fufexan.net";
forceSSL = true;
enableACME = true;
};

systemd.services.nginx.serviceConfig.ReadWritePaths = ["/var/www"];
}

0 comments on commit e0e8ea7

Please sign in to comment.