mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Actually listen on port 80, redirect to https
This commit is contained in:
parent
ae823a542a
commit
eba0193863
1 changed files with 8 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
{ config, ... }: let
|
{ config, ... }: let
|
||||||
domain = "technicalissues.us";
|
domain = "technicalissues.us";
|
||||||
|
http_port = 80;
|
||||||
https_port = 443;
|
https_port = 443;
|
||||||
in {
|
in {
|
||||||
|
|
||||||
|
|
@ -19,6 +20,9 @@ in {
|
||||||
add_header Strict-Transport-Security $hsts_header;
|
add_header Strict-Transport-Security $hsts_header;
|
||||||
'';
|
'';
|
||||||
defaultListen = [
|
defaultListen = [
|
||||||
|
{ port = http_port; addr = "0.0.0.0"; }
|
||||||
|
{ port = http_port; addr = "[::]"; }
|
||||||
|
|
||||||
{ port = https_port; addr = "0.0.0.0"; ssl = true; }
|
{ port = https_port; addr = "0.0.0.0"; ssl = true; }
|
||||||
{ port = https_port; addr = "[::]"; ssl = true; }
|
{ port = https_port; addr = "[::]"; ssl = true; }
|
||||||
];
|
];
|
||||||
|
|
@ -69,10 +73,6 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"albyhub.${domain}" = {
|
"albyhub.${domain}" = {
|
||||||
listen = [
|
|
||||||
{ port = https_port; addr = "0.0.0.0"; ssl = true; }
|
|
||||||
{ port = https_port; addr = "[::]"; ssl = true; }
|
|
||||||
];
|
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
acmeRoot = null;
|
acmeRoot = null;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|
@ -85,8 +85,12 @@ in {
|
||||||
};
|
};
|
||||||
"matrix.${domain}" = {
|
"matrix.${domain}" = {
|
||||||
listen = [
|
listen = [
|
||||||
|
{ port = http_port; addr = "0.0.0.0"; }
|
||||||
|
{ port = http_port; addr = "[::]"; }
|
||||||
|
|
||||||
{ port = https_port; addr = "0.0.0.0"; ssl = true; }
|
{ port = https_port; addr = "0.0.0.0"; ssl = true; }
|
||||||
{ port = https_port; addr = "[::]"; ssl = true; }
|
{ port = https_port; addr = "[::]"; ssl = true; }
|
||||||
|
|
||||||
{ port = 8448; addr = "0.0.0.0"; ssl = true; }
|
{ port = 8448; addr = "0.0.0.0"; ssl = true; }
|
||||||
{ port = 8448; addr = "[::]"; ssl = true; }
|
{ port = 8448; addr = "[::]"; ssl = true; }
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue