|
|
|
@ -7,7 +7,7 @@
|
|
|
|
|
generateCaddyConfiguration = (import ../lib/generate/caddy-configuration.nix) args;
|
|
|
|
|
in let
|
|
|
|
|
proxiedApplications = [{
|
|
|
|
|
hostname = "pastebin-stream-dev.cryto.net";
|
|
|
|
|
hostname = config.systems.osmium.applications.pastebin-stream.hostname;
|
|
|
|
|
tls = true;
|
|
|
|
|
proxyTarget = "http://localhost:3000";
|
|
|
|
|
}];
|
|
|
|
@ -16,40 +16,53 @@
|
|
|
|
|
imports = [
|
|
|
|
|
(pastebinStream {
|
|
|
|
|
errorPath = "/var/lib/pastebin-stream/errors";
|
|
|
|
|
rev = "3b7f6ea4ad663b82e7cfd95ae3c65f1a32f0cb0a";
|
|
|
|
|
sha256 = "0w29rwgkjpd9cl42z0n2fy5is730db3mfsqvjmxa7x65nz34d3wj";
|
|
|
|
|
rev = "06ef0fa19aa05a755efcafd9be077d3dacd79ee8";
|
|
|
|
|
sha256 = "06ilz7g31lrwyn1lcx095a5nn305xfmg5whdqb4ghgc8whn765s8";
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
services.caddy = {
|
|
|
|
|
enable = true;
|
|
|
|
|
agree = true;
|
|
|
|
|
email = "admin@cryto.net";
|
|
|
|
|
config = ''
|
|
|
|
|
config = {
|
|
|
|
|
services.caddy = {
|
|
|
|
|
enable = true;
|
|
|
|
|
agree = true;
|
|
|
|
|
email = "admin@cryto.net";
|
|
|
|
|
config = ''
|
|
|
|
|
${generateCaddyConfiguration proxiedApplications}
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.node-pastebin-stream = {
|
|
|
|
|
enable = true;
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
errorReporting = {
|
|
|
|
|
services.node-pastebin-stream = {
|
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
|
|
metadata = {
|
|
|
|
|
from = "ops@cryto.net";
|
|
|
|
|
to = "admin@cryto.net";
|
|
|
|
|
errorReporting = {
|
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
|
|
metadata = {
|
|
|
|
|
from = "ops@cryto.net";
|
|
|
|
|
to = "admin@cryto.net";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
|
80
|
|
|
|
|
443
|
|
|
|
|
];
|
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
|
80
|
|
|
|
|
443
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
htop
|
|
|
|
|
];
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
htop
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
options.systems.osmium = with lib; {
|
|
|
|
|
applications.pastebin-stream = {
|
|
|
|
|
hostname = mkOption {
|
|
|
|
|
description = ''
|
|
|
|
|
The hostname to expose the pastebin-stream application on.
|
|
|
|
|
'';
|
|
|
|
|
type = types.str;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|