lolcathost specific changes
This commit is contained in:
parent
1d4189b040
commit
40864af04f
18 changed files with 580 additions and 1167 deletions
35
homes/modules/server/nginx.nix
Normal file
35
homes/modules/server/nginx.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{...}: {
|
||||
services = {
|
||||
# use nginx as the reverse proxy
|
||||
# (also will use certbot and Let's Encrypt)
|
||||
# refer to: https://nixos.wiki/wiki/Nginx
|
||||
nginx = {
|
||||
enable = true;
|
||||
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
|
||||
# https://imbored.dev
|
||||
virtualHosts = {
|
||||
"imbored.dev" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
# config reverse proxy paths
|
||||
locations = {
|
||||
"/" = {
|
||||
# TODO
|
||||
proxyPass = "http://127.0.0.1:12345";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "eclarkboman@gmail.com";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue