forked from DGNum/infrastructure
feat(compute01): Deploy onlyoffice on documentserver.dgnum.eu
This commit is contained in:
parent
205c5eb544
commit
8d5dfb66e3
4 changed files with 51 additions and 0 deletions
|
@ -13,6 +13,7 @@ lib.extra.mkConfig {
|
||||||
"kanidm"
|
"kanidm"
|
||||||
"mastodon"
|
"mastodon"
|
||||||
"nextcloud"
|
"nextcloud"
|
||||||
|
"onlyoffice"
|
||||||
"outline"
|
"outline"
|
||||||
"rstudio-server"
|
"rstudio-server"
|
||||||
"satosa"
|
"satosa"
|
||||||
|
|
24
machines/compute01/onlyoffice/default.nix
Normal file
24
machines/compute01/onlyoffice/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let hostname = "documentserver.dgnum.eu";
|
||||||
|
in {
|
||||||
|
services.onlyoffice = {
|
||||||
|
inherit hostname;
|
||||||
|
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
jwtSecretFile = config.age.secrets."onlyoffice-jwt_secret_file".path;
|
||||||
|
|
||||||
|
port = 8015;
|
||||||
|
|
||||||
|
package = pkgs.onlyoffice-documentserver.overrideAttrs
|
||||||
|
(old: { patches = (old.patches or [ ]) ++ [ ./secrets.patch ]; });
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts.${hostname} = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
dgn-secrets.matches."^onlyoffice-.*$" = { owner = "onlyoffice"; };
|
||||||
|
}
|
25
machines/compute01/secrets/onlyoffice-jwt_secret_file
Normal file
25
machines/compute01/secrets/onlyoffice-jwt_secret_file
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 tDqJRg tdsqOGe0FIHUGGlbgtGpiswO1U6Kz9K+R7Qhu3gbcwI
|
||||||
|
rocqPa+5l0f7Rljn4cUtLkbHVPYMfgHLq39bQqc+Cg4
|
||||||
|
-> ssh-ed25519 jIXfPA TFIVQCvQ9r0cPx3nJz7q+W4NSthpcseiacX2gAhS3ws
|
||||||
|
hSZIw4r7TZnIClSI0H63Pv3Wufz6y8/5mxxK8p/ZsJc
|
||||||
|
-> ssh-ed25519 QlRB9Q F3eSJWNDba+UvXAQzAEtcTwzXubr9C/zai2E/jVRiUg
|
||||||
|
dHkCfb8HnjVmfZKsWe4dpsTrn2gY3vpadN6ojKA9FSE
|
||||||
|
-> ssh-ed25519 r+nK/Q k9Zrw0c4jO/QGNeqYt4UgRyun6NV7OGPqOipjQrHmyg
|
||||||
|
ov5f2X+qDNp5geyDC0Mcwdd5NyuipntL6qnyvjvs4RE
|
||||||
|
-> ssh-rsa krWCLQ
|
||||||
|
DChq0DDGoPIlOU3ZCIzLwiuQycb5063ofu8XYC062U+/h4eLMB2mv5Z364VTKarc
|
||||||
|
coqtUKjyao3R6HoPSBTlnUfIHXAGxxc8+S+cC0va7uVdF2sZLQ1dsbfBl1cX60s/
|
||||||
|
5gj4YQoCq0n0XIp/O/YkpfR4XKGAjArtX3ZgHbupe8s/9aoEFo3FUla8IOY+haGs
|
||||||
|
EVFSLVowJttThgcL0VvFAMKTmAJGDnl1hCfysarlZHMxKhXwhcwuAfgpGcdvfiko
|
||||||
|
MmnXWRb6FbCePJr8VwgrlrE6ZsUAYs3PUSX7xsiL6RZyqoq7jZXZrap/tsMH20py
|
||||||
|
S97T1GnxVfZ6rN50H0MQ3Q
|
||||||
|
-> ssh-ed25519 /vwQcQ 4w6YlacZHrwayjIgByLuVFlzTSxcRcxIs96K1vdleh4
|
||||||
|
Pg2/1ifwDBbVrCTf6/ato/9zDXmwNPQNEGZCDAkNJVo
|
||||||
|
-> ssh-ed25519 0R97PA bxxfto+ClQr2kcXS+M+BuUdI3SxvRr2jnJiNGTimLBY
|
||||||
|
fdZa3TFPRgKsws2BtAYt8yxLo+Ev2kPJuGTQMA65N20
|
||||||
|
-> jq-grease xa2s )y (6I
|
||||||
|
Gkd3UQxQTL/cg7Uigavkbir5R+yxBcAP3Np1auq9i3VIKJIAsPceOZu8oMTLVQU4
|
||||||
|
L4pRM0NSgnxwxauA2kUL7BY8ADTMuFvx0if9xre8nII
|
||||||
|
--- z7a3/Wdhy94ZpQhnfaXSC1cV+t4QmXIrgJgRI1Vn5kc
|
||||||
|
¯Ï\ùmœmÎò=¢äX8!<21>ÿ¡…7zSóÄ _mœQ¹·‡fÇ>ÛKÍ&œbÿ±¾/)²`e
|
|
@ -8,6 +8,7 @@ lib.setDefault { inherit publicKeys; } [
|
||||||
"mastodon-extra_env_file"
|
"mastodon-extra_env_file"
|
||||||
"nextcloud-adminpass_file"
|
"nextcloud-adminpass_file"
|
||||||
"nextcloud-s3_secret_file"
|
"nextcloud-s3_secret_file"
|
||||||
|
"onlyoffice-jwt_secret_file"
|
||||||
"outline-oidc_client_secret_file"
|
"outline-oidc_client_secret_file"
|
||||||
"outline-smtp_password_file"
|
"outline-smtp_password_file"
|
||||||
"outline-storage_secret_key_file"
|
"outline-storage_secret_key_file"
|
||||||
|
|
Loading…
Reference in a new issue