💥 [pi4] Caddy redirect from kitchenowl to grocery
This commit is contained in:
@ -8,13 +8,17 @@ in
|
|||||||
virtualHosts =
|
virtualHosts =
|
||||||
let
|
let
|
||||||
reverseProxy = port: "reverse_proxy localhost:${builtins.toString port}";
|
reverseProxy = port: "reverse_proxy localhost:${builtins.toString port}";
|
||||||
|
redirect = subdomain: "redir https://${subdomain}.${domain}{uri}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"beta.${domain}".extraConfig = ''
|
"beta.${domain}".extraConfig = ''
|
||||||
redir https://${domain}{uri}
|
redir https://${domain}{uri}
|
||||||
'';
|
'';
|
||||||
"git.${domain}".extraConfig = ''
|
"git.${domain}".extraConfig = ''
|
||||||
redir https://code.${domain}{uri}
|
${redirect "code"}
|
||||||
|
'';
|
||||||
|
"kitchenowl.${domain}".extraConfig = ''
|
||||||
|
${redirect "grocery"}
|
||||||
'';
|
'';
|
||||||
# Gitea
|
# Gitea
|
||||||
"code.${domain}".extraConfig = ''
|
"code.${domain}".extraConfig = ''
|
||||||
@ -27,7 +31,7 @@ in
|
|||||||
${reverseProxy 11000}
|
${reverseProxy 11000}
|
||||||
'';
|
'';
|
||||||
# Kitchenowl
|
# Kitchenowl
|
||||||
"kitchenowl.${domain}".extraConfig = ''
|
"grocery.${domain}".extraConfig = ''
|
||||||
${reverseProxy 800}
|
${reverseProxy 800}
|
||||||
'';
|
'';
|
||||||
# Actual Budget
|
# Actual Budget
|
||||||
|
Reference in New Issue
Block a user