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;
|
"static/logo.png" = favicon;
|
||||||
"favicon.png" = favicon;
|
"favicon.png" = favicon;
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
serverName = "fedi.twoneis.site";
|
serverName = "fedi.twoneis.site";
|
||||||
useACMEHost = "twoneis.site";
|
useACMEHost = "twoneis.site";
|
||||||
|
|
|
@ -16,7 +16,11 @@ in
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 512M;
|
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 {
|
mkIf conf.nginx.enable {
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "mira.cp.0909@gmail.com";
|
defaults.email = "mira@chpu.eu";
|
||||||
certs = {
|
certs = {
|
||||||
"twoneis.site" = {
|
"twoneis.site" = {
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
domain = "twoneis.site";
|
domain = "twoneis.site";
|
||||||
extraDomainNames = ["*.twoneis.site"];
|
extraDomainNames = ["*.twoneis.site"];
|
||||||
dnsProvider = "porkbun";
|
dnsProvider = "porkbun";
|
||||||
email = "mira.cp.0909@gmail.com";
|
email = "mira@chpu.eu";
|
||||||
environmentFile = "/root/porkbun-creds";
|
environmentFile = "/root/porkbun-creds";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ in
|
||||||
domain = "chpu.eu";
|
domain = "chpu.eu";
|
||||||
extraDomainNames = ["*.chpu.eu"];
|
extraDomainNames = ["*.chpu.eu"];
|
||||||
dnsProvider = "porkbun";
|
dnsProvider = "porkbun";
|
||||||
email = "mira.cp.0909@gmail.com";
|
email = "mira@chpu.eu";
|
||||||
environmentFile = "/root/porkbun-creds";
|
environmentFile = "/root/porkbun-creds";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -36,6 +36,8 @@ in
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
|
recommendedOptimisation = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"chpu.eu" = {
|
"chpu.eu" = {
|
||||||
serverName = "chpu.eu";
|
serverName = "chpu.eu";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue