mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
improve web server
This commit is contained in:
parent
fca0d6d3f4
commit
67c6a7f9a0
3 changed files with 9 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
nixpkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/a1cc729dcbc31d9b0d11d86dc7436163548a9665.tar.gz"); # nixos-24.05 2024-07-26
|
nixpkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/a1cc729dcbc31d9b0d11d86dc7436163548a9665.tar.gz"); # nixos-24.05 2024-07-26
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
website = import (fetchTarball "https://github.com/Noratrieb/website/archive/71d45291a352cc4e9e7ce1ffc078b5e36432b3f1.tar.gz");
|
website = import (fetchTarball "https://github.com/Noratrieb/website/archive/dc4352b9f01c4780539bdd50249d8f552e541fd9.tar.gz");
|
||||||
blog = fetchTarball "https://github.com/Noratrieb/nilstrieb.github.io/archive/8162ce0cff29f940507032be6b0692290d73594c.tar.gz";
|
blog = fetchTarball "https://github.com/Noratrieb/nilstrieb.github.io/archive/8162ce0cff29f940507032be6b0692290d73594c.tar.gz";
|
||||||
slides = fetchTarball "https://github.com/Noratrieb/slides/archive/0401f35c22b124b69447655f0c537badae9e223c.tar.gz";
|
slides = fetchTarball "https://github.com/Noratrieb/slides/archive/0401f35c22b124b69447655f0c537badae9e223c.tar.gz";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,19 +31,23 @@ www.noratrieb.dev {
|
||||||
}
|
}
|
||||||
|
|
||||||
uptime.noratrieb.dev {
|
uptime.noratrieb.dev {
|
||||||
|
encode zstd gzip
|
||||||
reverse_proxy * localhost:5010
|
reverse_proxy * localhost:5010
|
||||||
}
|
}
|
||||||
|
|
||||||
hugo-chat.noratrieb.dev {
|
hugo-chat.noratrieb.dev {
|
||||||
|
encode zstd gzip
|
||||||
reverse_proxy * localhost:5002
|
reverse_proxy * localhost:5002
|
||||||
}
|
}
|
||||||
|
|
||||||
api.hugo-chat.noratrieb.dev {
|
api.hugo-chat.noratrieb.dev {
|
||||||
import cors https://hugo-chat.noratrieb.dev "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"
|
import cors https://hugo-chat.noratrieb.dev "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"
|
||||||
|
encode zstd gzip
|
||||||
reverse_proxy * localhost:5001
|
reverse_proxy * localhost:5001
|
||||||
}
|
}
|
||||||
|
|
||||||
bisect-rustc.noratrieb.dev {
|
bisect-rustc.noratrieb.dev {
|
||||||
|
encode zstd gzip
|
||||||
reverse_proxy * localhost:5005
|
reverse_proxy * localhost:5005
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
${config.networking.hostName}.infra.noratrieb.dev {
|
${config.networking.hostName}.infra.noratrieb.dev {
|
||||||
|
encode zstd gzip
|
||||||
|
header -Last-Modified
|
||||||
root * ${./debugging-page}
|
root * ${./debugging-page}
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|
@ -22,6 +24,8 @@
|
||||||
if name == "vps1" then
|
if name == "vps1" then
|
||||||
builtins.readFile ./Caddyfile + ''
|
builtins.readFile ./Caddyfile + ''
|
||||||
noratrieb.dev {
|
noratrieb.dev {
|
||||||
|
encode zstd gzip
|
||||||
|
header -Last-Modified
|
||||||
root * ${website {inherit pkgs slides blog;}}
|
root * ${website {inherit pkgs slides blog;}}
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue