proxy dev
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
};
|
};
|
||||||
certs = {
|
certs = {
|
||||||
"${domain}" = {
|
"${domain}" = {
|
||||||
extraDomainNames = builtins.map (subd: "${subd}.${domain}") [ "sync" "dev" ];
|
extraDomainNames = builtins.map (subd: "${subd}.${domain}") [ "sync" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -150,16 +150,23 @@
|
|||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"dev.${domain}" = vh // {
|
"pnx.${domain}" = vh // {
|
||||||
listen = dl ++ [
|
listen = dl;
|
||||||
# { addr = "0.0.0.0"; port = 8000; ssl = true; }
|
locations."/" = {
|
||||||
# { addr = "[::0]"; port = 8000; ssl = true; }
|
proxyPass = "http://127.0.0.1:8040";
|
||||||
];
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"wip.${domain}" = vh // {
|
||||||
|
listen = dl;
|
||||||
root = "/var/lib/hugo/nx2site/public";
|
root = "/var/lib/hugo/nx2site/public";
|
||||||
# locations."/" = {
|
};
|
||||||
# proxyPass = "http://127.0.0.1:8000";
|
"dev.${domain}" = vh // {
|
||||||
# proxyWebsockets = true;
|
listen = dl;
|
||||||
# };
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:8080";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# is done atomatically
|
# is done atomatically
|
||||||
# "cal.${domain}" = vh // {
|
# "cal.${domain}" = vh // {
|
||||||
|
|||||||
Reference in New Issue
Block a user