removed chat.uref.hacc.media

keep-around/cce3bb96336019f150e91e640957164a30608db5
stuebinm 2020-12-02 23:15:38 +01:00 committed by hexchen
parent cc691d10f5
commit cce3bb9633
2 changed files with 0 additions and 36 deletions

View File

@ -14,7 +14,6 @@
./services/nginx.nix
# ./k8s.nix
./services/docker.nix
./services/rocket.nix
./services/gitlab-runner.nix
];
boot.loader.grub.enable = true;

View File

@ -1,35 +0,0 @@
{ config, lib, pkgs, ... }:
{
services.mongodb = {
enable = true;
extraConfig = ''
replication:
replSetName: "rs01"
'';
};
virtualisation.oci-containers.containers."rocketchat" = {
autoStart = true;
environment = {
ROOT_URL = "https://chat.uref.hacc.media";
MONGO_URL = "mongodb://localhost:27017/rocketchat";
MONGO_OPLOG_URL = "mongodb://localhost:27017/local";
Accounts_UseDNSDomainCheck = "false";
};
image = "rocketchat/rocket.chat:3.1.1";
extraOptions = [ "--network=host" ];
};
services.nginx.virtualHosts."chat.uref.hacc.media" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:3000";
extraConfig = "
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
";
};
};
}