2024-07-22 00:19:08 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
let
|
|
|
|
port = 9001;
|
|
|
|
in
|
|
|
|
{
|
2024-09-22 01:21:25 +02:00
|
|
|
|
2024-09-30 05:05:17 +02:00
|
|
|
healthchecks.http.wastebin = {
|
2024-09-22 01:21:25 +02:00
|
|
|
url = "https://paste.ingolf-wagner.de";
|
2024-10-02 10:49:05 +02:00
|
|
|
expectedContent = "open";
|
2024-09-22 01:21:25 +02:00
|
|
|
};
|
|
|
|
|
2024-07-22 00:19:08 +02:00
|
|
|
services.wastebin = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
WASTEBIN_ADDRESS_PORT = "127.0.0.1:${toString port}";
|
|
|
|
WASTEBIN_TITLE = "paste.ingolf-wagner.de";
|
|
|
|
WASTEBIN_MAX_PASTE_EXPIRATION = 60 * 60 * 24 * 30;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2024-08-29 03:26:04 +02:00
|
|
|
virtualHosts."paste.ingolf-wagner.de" = {
|
2024-07-22 00:19:08 +02:00
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = {
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
proxyWebsockets = true;
|
|
|
|
proxyPass = "http://127.0.0.1:${toString port}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|