add paste.ingolf-wagner.de
This commit is contained in:
parent
9eab6b77fa
commit
9631758da0
2 changed files with 31 additions and 3 deletions
|
@ -8,15 +8,16 @@
|
|||
../../components
|
||||
../../modules
|
||||
|
||||
./service-forgejo.nix
|
||||
./service-forgejo-runner.nix
|
||||
./service-forgejo.nix
|
||||
./service-hedgedoc.nix
|
||||
./service-nix-cache.nix
|
||||
./service-photoprism.nix
|
||||
#./service-surrealdb.nix # not really needed at the moment
|
||||
./service-taskserver.nix
|
||||
./service-vaultwarden.nix
|
||||
#./service-surrealdb.nix # not really needed at the moment
|
||||
./service-vikunja.nix
|
||||
./service-nix-cache.nix
|
||||
./service-wastebin.nix
|
||||
|
||||
./nginx-ingolf-wagner-de.nix
|
||||
./nginx-wkd.nix
|
||||
|
|
27
machines/orbi/service-wastebin.nix
Normal file
27
machines/orbi/service-wastebin.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
port = 9001;
|
||||
in
|
||||
{
|
||||
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;
|
||||
virtualHosts. "paste.ingolf-wagner.de" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://127.0.0.1:${toString port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue