mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 09:35:10 +01:00
hugo
This commit is contained in:
parent
a7aea77480
commit
51b9fc4d1b
13 changed files with 77 additions and 46 deletions
|
|
@ -27,3 +27,30 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
hugo-chat.noratrieb.dev {
|
||||
reverse_proxy * vps1.local:5002
|
||||
}
|
||||
|
||||
api.cors-school.noratrieb.dev {
|
||||
import cors https://cors-school.noratrieb.dev "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,token,refresh-token,Authorization"
|
||||
reverse_proxy * vps1.local:5001
|
||||
}
|
||||
|
||||
################################################################
|
||||
# deadname redirects
|
||||
nilstrieb.dev {
|
||||
redir https://noratrieb.dev{uri} permanent
|
||||
}
|
||||
|
||||
blog.nilstrieb.dev {
|
||||
redir https://blog.noratrieb.dev{uri} permanent
|
||||
}
|
||||
|
||||
hugo-chat.nilstrieb.dev {
|
||||
redir https://hugo-chat.noratrieb.dev{uri} permanent
|
||||
}
|
||||
|
||||
api.hugo-chat.nilstrieb.dev {
|
||||
redir https://api.hugo-chat.noratrieb.dev{uri} permanent
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
enable = true;
|
||||
configFile = pkgs.writeText "Caddyfile"
|
||||
(
|
||||
builtins.readFile ./Caddyfile +
|
||||
''
|
||||
${config.networking.hostName}.infra.noratrieb.dev {
|
||||
root * ${./debugging-page}
|
||||
|
|
@ -16,15 +15,7 @@
|
|||
|
||||
${
|
||||
if name == "vps1" then
|
||||
''
|
||||
nilstrieb.dev {
|
||||
redir https://noratrieb.dev{uri} permanent
|
||||
}
|
||||
|
||||
blog.nilstrieb.dev {
|
||||
redir https://blog.noratrieb.dev{uri} permanent
|
||||
}
|
||||
|
||||
builtins.readFile ./Caddyfile + ''
|
||||
noratrieb.dev {
|
||||
root * ${website {inherit pkgs slides blog;}}
|
||||
file_server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue