Skip to content

Commit

Permalink
Redirect from www.dd-ix.net to dd-ix.net
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimuedaertya committed Nov 7, 2023
1 parent 33d1741 commit 2906d20
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/management/website.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

sops.secrets.listmonk_admin.owner = config.dd-ix.foundation.user;
services.nginx = {
enable = true;
enable = true;
virtualHosts = {
"www.${config.deployment-dd-ix.domain}" = {
enableACME = true;
forceSSL = true;
locations = {
"/".return = "301 https.//${config.deployment-dd-ix.domain}$request_uri";
};
};
"${config.deployment-dd-ix.domain}" = {
enableACME = true;
forceSSL = true;
Expand Down

0 comments on commit 2906d20

Please sign in to comment.