mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
try to fix onlyoffice
now its working in lan)
This commit is contained in:
@@ -46,6 +46,7 @@ in
|
|||||||
trusted_domains = [
|
trusted_domains = [
|
||||||
"nextcloud.zeroq.su"
|
"nextcloud.zeroq.su"
|
||||||
"office.zeroq.su"
|
"office.zeroq.su"
|
||||||
|
"office.local"
|
||||||
"100.64.0.0"
|
"100.64.0.0"
|
||||||
"192.168.1.20"
|
"192.168.1.20"
|
||||||
"localhost"
|
"localhost"
|
||||||
@@ -136,7 +137,8 @@ in
|
|||||||
};
|
};
|
||||||
onlyoffice = {
|
onlyoffice = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostname = "0.0.0.0";
|
hostname = "office.local";
|
||||||
|
port = 8090;
|
||||||
allowLocalConnections = true;
|
allowLocalConnections = true;
|
||||||
wopi = true;
|
wopi = true;
|
||||||
jwtSecretFile = config.sops.secrets.onlyoffice-jwt.path;
|
jwtSecretFile = config.sops.secrets.onlyoffice-jwt.path;
|
||||||
|
|||||||
@@ -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" = {
|
"bentopdf.local" = {
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ in
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://${server}:8000"; # 9980
|
proxyPass = "http://${server}:8090";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user