nginx: simplify ssl settings
This commit is contained in:
parent
19d5664be5
commit
afafd02d9a
2 changed files with 6 additions and 12 deletions
|
@ -33,19 +33,9 @@ in {
|
|||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts.${domain} = {
|
||||
forceSSL = true;
|
||||
# enableACME = true;
|
||||
useACMEHost = domain;
|
||||
inherit acmeRoot;
|
||||
extraConfig = ''
|
||||
# nginx defaults to a 1MB size limit for uploads, which
|
||||
# *definitely* isn't enough for Git LFS.
|
||||
# 'client_max_body_size 300m;' would set a limit of 300MB
|
||||
# setting it to 0 means "no limit"
|
||||
client_max_body_size 512M;
|
||||
'';
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "http://localhost:${toString port}";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -27,6 +27,10 @@ in {
|
|||
recommendedProxySettings = true;
|
||||
recommendedZstdSettings = true;
|
||||
|
||||
# nginx defaults to a 1MB size limit for uploads, which
|
||||
# *definitely* isn't enough for Git LFS.
|
||||
# 'client_max_body_size 300m;' would set a limit of 300MB
|
||||
# setting it to 0 means "no limit"
|
||||
clientMaxBodySize = mkDefault "512m";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue