mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
@@ -123,7 +123,7 @@
|
|||||||
"::1" = [
|
"::1" = [
|
||||||
"nextcloud.zeroq.ru"
|
"nextcloud.zeroq.ru"
|
||||||
"collabora.zeroq.ru"
|
"collabora.zeroq.ru"
|
||||||
"collabora.zeroq.ru"
|
"office.zeroq.com"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+16
-16
@@ -16,22 +16,6 @@ in
|
|||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"office.zeroq.ru" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
kTLS = true;
|
|
||||||
# locations."/" = {
|
|
||||||
# proxyPass = "http://${server}:8000";
|
|
||||||
# proxyWebsockets = true; # onlyoffice uses websockets
|
|
||||||
# };
|
|
||||||
extraConfig = ''
|
|
||||||
reverse_proxy http://${server}:8000 {
|
|
||||||
# Required to circumvent bug of Onlyoffice loading mixed non-https content
|
|
||||||
header_up X-Forwarded-Proto https
|
|
||||||
client_max_body_size 5G;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
"collabora.zeroq.ru" = {
|
"collabora.zeroq.ru" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
@@ -124,6 +108,22 @@ in
|
|||||||
};
|
};
|
||||||
caddy = {
|
caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
virtualHosts."office.zeroq.ru" = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
kTLS = true;
|
||||||
|
# locations."/" = {
|
||||||
|
# proxyPass = "http://${server}:8000";
|
||||||
|
# proxyWebsockets = true; # onlyoffice uses websockets
|
||||||
|
# };
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy http://${server}:8000 {
|
||||||
|
# Required to circumvent bug of Onlyoffice loading mixed non-https content
|
||||||
|
header_up X-Forwarded-Proto https
|
||||||
|
client_max_body_size 5G;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
security.acme = {
|
security.acme = {
|
||||||
|
|||||||
Reference in New Issue
Block a user