mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
@@ -117,13 +117,13 @@ in
|
|||||||
# };
|
# };
|
||||||
onlyoffice = {
|
onlyoffice = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostname = "onlyoffice.local";
|
hostname = "office.zeroq.ru";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hosts = {
|
networking.hosts = {
|
||||||
"0.0.0.0" = [
|
"0.0.0.0" = [
|
||||||
"onlyoffice.local"
|
"office.zeroq.ru"
|
||||||
];
|
];
|
||||||
# "127.0.0.1" = [
|
# "127.0.0.1" = [
|
||||||
# "nextcloud.zeroq.ru"
|
# "nextcloud.zeroq.ru"
|
||||||
|
|||||||
@@ -41,26 +41,26 @@
|
|||||||
# }
|
# }
|
||||||
# ];
|
# ];
|
||||||
# };
|
# };
|
||||||
"onlyoffice.local" = {
|
# "onlyoffice.local" = {
|
||||||
forceSSL = false;
|
# forceSSL = false;
|
||||||
enableACME = false;
|
# enableACME = false;
|
||||||
listen = [
|
# listen = [
|
||||||
{
|
# {
|
||||||
addr = "100.64.0.0";
|
# addr = "100.64.0.0";
|
||||||
port = 8001;
|
# port = 8001;
|
||||||
}
|
# }
|
||||||
{
|
# {
|
||||||
addr = "192.168.1.20";
|
# addr = "192.168.1.20";
|
||||||
port = 8001;
|
# port = 8001;
|
||||||
}
|
# }
|
||||||
];
|
# ];
|
||||||
extraConfig = ''
|
# extraConfig = ''
|
||||||
# Force nginx to return relative redirects. This lets the browser
|
# # Force nginx to return relative redirects. This lets the browser
|
||||||
# figure out the full URL. This ends up working better because it's in
|
# # 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.
|
# # front of the reverse proxy and has the right protocol, hostname & port.
|
||||||
absolute_redirect off;
|
# absolute_redirect off;
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
# "localhost:9980" = {
|
# "localhost:9980" = {
|
||||||
# forceSSL = false;
|
# forceSSL = false;
|
||||||
# enableACME = false;
|
# enableACME = false;
|
||||||
|
|||||||
@@ -33,11 +33,12 @@ in
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${server}:8001";
|
proxyPass = "http://${server}:8000";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 5G;
|
client_max_body_size 5G;
|
||||||
|
absolute_redirect off;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"immich.zeroq.ru" = {
|
"immich.zeroq.ru" = {
|
||||||
|
|||||||
Reference in New Issue
Block a user