Compare commits

...

2 commits

Author SHA1 Message Date
Ingolf Wagner 9631758da0
add paste.ingolf-wagner.de
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 7m19s
2024-07-22 00:19:08 +02:00
Ingolf Wagner 9eab6b77fa
reformat 2024-07-22 00:18:48 +02:00
3 changed files with 33 additions and 5 deletions

View file

@ -3,9 +3,9 @@ name: Build all NixOS Configurations
on:
push:
branches:
- '**'
- "**"
schedule:
- cron: '30 2 * * *' # not to frequent, GitHub only allows a few pulls per hour
- cron: "30 2 * * *" # not to frequent, GitHub only allows a few pulls per hour
jobs:
nix build:

View file

@ -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

View 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}";
};
};
};
}