mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
chore(fluidd): proxied
This commit is contained in:
parent
bd78e75619
commit
cd83456843
3 changed files with 47 additions and 11 deletions
|
|
@ -8,8 +8,7 @@
|
|||
inherit (lib.modules) mkDefault;
|
||||
name.shortServer = mkDefault "print";
|
||||
upstreamName = "fluidd'access";
|
||||
serverName = "print.local.${domain}";
|
||||
# TODO: serverName = "@fluidd_internal";
|
||||
serverName = "@fluidd_internal"; # "print.local.${domain}"
|
||||
in {
|
||||
config.services.nginx = {
|
||||
upstreams'.${upstreamName} = {
|
||||
|
|
@ -19,13 +18,12 @@ in {
|
|||
name = "nginx";
|
||||
system = "logistics";
|
||||
port = "proxied";
|
||||
# XXX: logistics doesn't listen on v6
|
||||
getAddressFor = "getAddress4For";
|
||||
};
|
||||
};
|
||||
};
|
||||
virtualHosts = let
|
||||
copyFromVhost = mkDefault "fluidd";
|
||||
# TODO: just use moonraker as the upstream directly?
|
||||
locations = {
|
||||
"/" = {
|
||||
proxy = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue