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
|
@ -32,14 +32,9 @@ in
|
|||
services.nginx = {
|
||||
|
||||
virtualHosts."www.${config.networking.domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/".return = "301 $scheme://ifsr.de$request_uri";
|
||||
|
||||
};
|
||||
virtualHosts."${config.networking.domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
root = "/srv/web/ifsrde";
|
||||
extraConfig = ''
|
||||
index index.html index.php;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue