mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
13123
This commit is contained in:
@@ -117,13 +117,13 @@ in
|
|||||||
# };
|
# };
|
||||||
onlyoffice = {
|
onlyoffice = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostname = "office.zeroq.ru";
|
hostname = "onlyoffice.local";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hosts = {
|
networking.hosts = {
|
||||||
"0.0.0.0" = [
|
"0.0.0.0" = [
|
||||||
"office.zeroq.ru"
|
"onlyoffice.local"
|
||||||
];
|
];
|
||||||
# "127.0.0.1" = [
|
# "127.0.0.1" = [
|
||||||
# "nextcloud.zeroq.ru"
|
# "nextcloud.zeroq.ru"
|
||||||
|
|||||||
@@ -41,6 +41,20 @@
|
|||||||
# }
|
# }
|
||||||
# ];
|
# ];
|
||||||
# };
|
# };
|
||||||
|
"office.zeroq.ru" = {
|
||||||
|
forceSSL = false;
|
||||||
|
enableACME = false;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "onlyoffice.local";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
# Force nginx to return relative redirects. This lets the browser
|
||||||
|
# figure out the full URL. This ends up working better because it's in
|
||||||
|
# front of the reverse proxy and has the right protocol, hostname & port.
|
||||||
|
absolute_redirect off;
|
||||||
|
'';
|
||||||
|
};
|
||||||
# "onlyoffice.local" = {
|
# "onlyoffice.local" = {
|
||||||
# forceSSL = false;
|
# forceSSL = false;
|
||||||
# enableACME = false;
|
# enableACME = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user