mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
123
This commit is contained in:
@@ -27,6 +27,14 @@
|
||||
}
|
||||
];
|
||||
};
|
||||
# "localhost:8890" = {
|
||||
# listen = [
|
||||
# {
|
||||
# addr = "127.0.0.1";
|
||||
# port = 8890;
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
"localhost:8890" = {
|
||||
forceSSL = false;
|
||||
enableACME = false;
|
||||
|
||||
@@ -36,7 +36,7 @@ in
|
||||
proxyPass = "http://${server}:8890";
|
||||
proxyWebsockets = true; # collabora uses websockets
|
||||
};
|
||||
# listen = [
|
||||
# listen = [
|
||||
# {
|
||||
# addr = "0.0.0.0";
|
||||
# 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 = {
|
||||
acceptTerms = true;
|
||||
|
||||
Reference in New Issue
Block a user