mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 19:24:03 -06:00
Nginx file for ahoneybun.net
This commit is contained in:
parent
57b4597bde
commit
e873401cfe
1 changed files with 17 additions and 0 deletions
17
dev/nginx.nix
Normal file
17
dev/nginx.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
security.acme.acceptTerms = true;
|
||||||
|
security.acme.defaults.email = "aaronhoneycutt@proton.me";
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"ahoneybun.net" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
# All serverAliases will be added as extra domain names on the certificate.
|
||||||
|
# serverAliases = [ "bar.example.com" ];
|
||||||
|
locations."/" = {
|
||||||
|
root = "/var/www";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue