mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
reject HTTP nicely
This commit is contained in:
parent
67c6a7f9a0
commit
bce3c7ca65
2 changed files with 6 additions and 2 deletions
|
|
@ -24,8 +24,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: compression?
|
|
||||||
|
|
||||||
www.noratrieb.dev {
|
www.noratrieb.dev {
|
||||||
redir https://noratrieb.dev{uri} permanent
|
redir https://noratrieb.dev{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{ pkgs, config, lib, name, website, slides, blog, ... }: {
|
{ pkgs, config, lib, name, website, slides, blog, ... }: {
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
80
|
||||||
443
|
443
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -11,6 +12,11 @@
|
||||||
''
|
''
|
||||||
{
|
{
|
||||||
email nilstrieb@proton.me
|
email nilstrieb@proton.me
|
||||||
|
auto_https disable_redirects
|
||||||
|
}
|
||||||
|
|
||||||
|
http:// {
|
||||||
|
respond "This is an HTTP-only server, silly you. Go to https:// instead." 400
|
||||||
}
|
}
|
||||||
|
|
||||||
${config.networking.hostName}.infra.noratrieb.dev {
|
${config.networking.hostName}.infra.noratrieb.dev {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue