try to fix onlyoffice

now its working in lan)
This commit is contained in:
2026-06-09 21:44:40 +03:00
parent 7514df3df3
commit ebd2e99066
3 changed files with 24 additions and 2 deletions
+3 -1
View File
@@ -46,6 +46,7 @@ in
trusted_domains = [
"nextcloud.zeroq.su"
"office.zeroq.su"
"office.local"
"100.64.0.0"
"192.168.1.20"
"localhost"
@@ -136,7 +137,8 @@ in
};
onlyoffice = {
enable = true;
hostname = "0.0.0.0";
hostname = "office.local";
port = 8090;
allowLocalConnections = true;
wopi = true;
jwtSecretFile = config.sops.secrets.onlyoffice-jwt.path;
+20
View File
@@ -31,6 +31,26 @@ in
}
];
};
"office.local" = {
forceSSL = false;
enableACME = false;
# locations = {
# "/" = {
# proxyPass = "http://localhost:8090";
# proxyWebsockets = true;
# };
# };
# extraConfig = ''
# proxy_set_header Host $host;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header X-Forwarded-Host $host;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
# '';
};
"bentopdf.local" = {
forceSSL = false;
enableACME = false;