nginx: streamline all forceSSL
and enableACME
directives in one file
This commit is contained in:
parent
bedee4f90c
commit
4f1f88a779
32 changed files with 2 additions and 91 deletions
|
@ -11,11 +11,6 @@ in
|
|||
./mailman.nix
|
||||
];
|
||||
|
||||
# Get SSL certs for dovecot and postfix via ngnix
|
||||
services.nginx.virtualHosts."${hostname}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
};
|
||||
security.acme.certs."${hostname}" = {
|
||||
reloadServices = [
|
||||
"postfix.service"
|
||||
|
|
|
@ -64,8 +64,6 @@
|
|||
ensureDatabases = [ "mailman" "mailman-web" ];
|
||||
};
|
||||
services.nginx.virtualHosts."lists.${config.networking.domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/robots.txt" = {
|
||||
extraConfig = ''
|
||||
add_header Content-Type text/plain;
|
||||
|
|
|
@ -117,8 +117,6 @@ in
|
|||
};
|
||||
nginx = {
|
||||
virtualHosts."${domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://127.0.0.1:11334";
|
||||
|
|
|
@ -65,11 +65,7 @@ in
|
|||
proxy_buffers 8 64k;
|
||||
proxy_buffer_size 64k;
|
||||
'';
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations = {
|
||||
|
||||
|
||||
"^~/SOGo".extraConfig = lib.mkForce ''
|
||||
proxy_pass http://127.0.0.1:20000;
|
||||
proxy_redirect http://127.0.0.1:20000 default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue