Skip to content

Commit

Permalink
Merge pull request #36 from dd-ix/redirect-without-www
Browse files Browse the repository at this point in the history
Redirect from www.dd-ix.net to dd-ix.net
  • Loading branch information
tanneberger authored Nov 7, 2023
2 parents a41ce20 + 2906d20 commit 541812e
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 541812e

Please sign in to comment.