mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 03:04:03 -06:00
add personal website
This commit is contained in:
parent
6b4b50cb07
commit
0f105108ef
1 changed files with 20 additions and 0 deletions
20
homelab/ahoneybun-net/default.nix
Normal file
20
homelab/ahoneybun-net/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."ahoneybun.net" = {
|
||||
root = "/mnt/DATA/Website/ahoneybun.net/public";
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
default_type text/html;
|
||||
'';
|
||||
};
|
||||
locations."~* \.atom\.xml$" = {
|
||||
extraConfig = ''
|
||||
types { } default_type "application/atom+xml; charset=utf-8";
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue