feat(compute01): Deploy RStudio server on rstudio.dgnum.eu
This commit is contained in:
parent
86129fb971
commit
205c5eb544
2 changed files with 36 additions and 0 deletions
|
@ -14,6 +14,7 @@ lib.extra.mkConfig {
|
|||
"mastodon"
|
||||
"nextcloud"
|
||||
"outline"
|
||||
"rstudio-server"
|
||||
"satosa"
|
||||
"zammad"
|
||||
];
|
||||
|
|
35
machines/compute01/rstudio-server.nix
Normal file
35
machines/compute01/rstudio-server.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
host = "rstudio.dgnum.eu";
|
||||
port = 19000;
|
||||
in {
|
||||
services.rstudio-server = {
|
||||
enable = true;
|
||||
rserverExtraConfig = ''
|
||||
www-port = ${builtins.toString port}
|
||||
'';
|
||||
|
||||
package = pkgs.rstudioServerWrapper.override {
|
||||
packages = with pkgs.rPackages; [ ggplot2 rmarkdown dplyr ];
|
||||
};
|
||||
};
|
||||
|
||||
users.users.ruser = {
|
||||
isNormalUser = true;
|
||||
hashedPassword =
|
||||
"$6$pTXXVh8NfE.M8VPc$q0fFh3Y7Y0DauLCcZLgJzFciq1wkjoHmO61XpOrZLH3a1M32ZzOMbjx2XMm2QxrUncbx6hGerY/lD8rQ8InS4.";
|
||||
};
|
||||
|
||||
dgn-access-control.users.ruser = [ "jemagius" ];
|
||||
|
||||
# services.nginx.virtualHosts.${host} = {
|
||||
# enableACME = true;
|
||||
# forceSSL = true;
|
||||
#
|
||||
# locations."/" = {
|
||||
# proxyPass = "http://localhost:${builtins.toString port}";
|
||||
# proxyWebsockets = true;
|
||||
# };
|
||||
# };
|
||||
}
|
Loading…
Reference in a new issue