mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
123
This commit is contained in:
@@ -117,13 +117,13 @@ in
|
||||
# };
|
||||
onlyoffice = {
|
||||
enable = true;
|
||||
hostname = "onlyoffice.local";
|
||||
hostname = "office.zeroq.ru";
|
||||
};
|
||||
};
|
||||
|
||||
networking.hosts = {
|
||||
"0.0.0.0" = [
|
||||
"onlyoffice.local"
|
||||
"office.zeroq.ru"
|
||||
];
|
||||
# "127.0.0.1" = [
|
||||
# "nextcloud.zeroq.ru"
|
||||
|
||||
@@ -41,26 +41,26 @@
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
"onlyoffice.local" = {
|
||||
forceSSL = false;
|
||||
enableACME = false;
|
||||
listen = [
|
||||
{
|
||||
addr = "100.64.0.0";
|
||||
port = 8001;
|
||||
}
|
||||
{
|
||||
addr = "192.168.1.20";
|
||||
port = 8001;
|
||||
}
|
||||
];
|
||||
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" = {
|
||||
# forceSSL = false;
|
||||
# enableACME = false;
|
||||
# listen = [
|
||||
# {
|
||||
# addr = "100.64.0.0";
|
||||
# port = 8001;
|
||||
# }
|
||||
# {
|
||||
# addr = "192.168.1.20";
|
||||
# port = 8001;
|
||||
# }
|
||||
# ];
|
||||
# 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;
|
||||
# '';
|
||||
# };
|
||||
# "localhost:9980" = {
|
||||
# forceSSL = false;
|
||||
# enableACME = false;
|
||||
|
||||
@@ -33,11 +33,12 @@ in
|
||||
forceSSL = true;
|
||||
kTLS = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://${server}:8001";
|
||||
proxyPass = "http://${server}:8000";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
extraConfig = ''
|
||||
client_max_body_size 5G;
|
||||
absolute_redirect off;
|
||||
'';
|
||||
};
|
||||
"immich.zeroq.ru" = {
|
||||
|
||||
Reference in New Issue
Block a user