mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
123
This commit is contained in:
@@ -27,6 +27,14 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
# "localhost:8890" = {
|
||||||
|
# listen = [
|
||||||
|
# {
|
||||||
|
# addr = "127.0.0.1";
|
||||||
|
# port = 8890;
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
"localhost:8890" = {
|
"localhost:8890" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ in
|
|||||||
proxyPass = "http://${server}:8890";
|
proxyPass = "http://${server}:8890";
|
||||||
proxyWebsockets = true; # collabora uses websockets
|
proxyWebsockets = true; # collabora uses websockets
|
||||||
};
|
};
|
||||||
# listen = [
|
# listen = [
|
||||||
# {
|
# {
|
||||||
# addr = "0.0.0.0";
|
# addr = "0.0.0.0";
|
||||||
# port = 443;
|
# port = 443;
|
||||||
@@ -118,6 +118,17 @@ in
|
|||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
caddy = {
|
||||||
|
enable = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"collabora.zeroq.ru".extraConfig = ''
|
||||||
|
reverse_proxy http://100.64.0.0:8890 {
|
||||||
|
# Required to circumvent bug of Onlyoffice loading mixed non-https content
|
||||||
|
header_up X-Forwarded-Proto https
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user