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
|
@ -42,8 +42,6 @@ in
|
|||
|
||||
services.nginx = {
|
||||
virtualHosts."${cms-domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
extraConfig = ''
|
||||
if ($request_method = 'OPTIONS') {
|
||||
|
@ -64,8 +62,6 @@ in
|
|||
};
|
||||
};
|
||||
virtualHosts."${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."= /" = {
|
||||
return = "301 /2023/";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue