nginx optimisations and email
This commit is contained in:
parent
44d6373784
commit
d5dfdf8e71
3 changed files with 11 additions and 4 deletions
|
@ -64,6 +64,7 @@ in
|
|||
"static/logo.png" = favicon;
|
||||
"favicon.png" = favicon;
|
||||
};
|
||||
|
||||
nginx = {
|
||||
serverName = "fedi.twoneis.site";
|
||||
useACMEHost = "twoneis.site";
|
||||
|
|
|
@ -16,7 +16,11 @@ in
|
|||
extraConfig = ''
|
||||
client_max_body_size 512M;
|
||||
'';
|
||||
locations."/".proxyPass = "http://localhost:${toString cfg.HTTP_PORT}";
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://localhost:${toString cfg.HTTP_PORT}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -9,14 +9,14 @@ in
|
|||
mkIf conf.nginx.enable {
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
defaults.email = "mira.cp.0909@gmail.com";
|
||||
defaults.email = "mira@chpu.eu";
|
||||
certs = {
|
||||
"twoneis.site" = {
|
||||
group = "nginx";
|
||||
domain = "twoneis.site";
|
||||
extraDomainNames = ["*.twoneis.site"];
|
||||
dnsProvider = "porkbun";
|
||||
email = "mira.cp.0909@gmail.com";
|
||||
email = "mira@chpu.eu";
|
||||
environmentFile = "/root/porkbun-creds";
|
||||
};
|
||||
|
||||
|
@ -25,7 +25,7 @@ in
|
|||
domain = "chpu.eu";
|
||||
extraDomainNames = ["*.chpu.eu"];
|
||||
dnsProvider = "porkbun";
|
||||
email = "mira.cp.0909@gmail.com";
|
||||
email = "mira@chpu.eu";
|
||||
environmentFile = "/root/porkbun-creds";
|
||||
};
|
||||
};
|
||||
|
@ -36,6 +36,8 @@ in
|
|||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedTlsSettings = true;
|
||||
virtualHosts = {
|
||||
"chpu.eu" = {
|
||||
serverName = "chpu.eu";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue