add paste
This commit is contained in:
parent
36fa7a75a3
commit
1d4b154bcd
3 changed files with 28 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
|||
./lldap.nix
|
||||
# Dante not working right now, possibly misconfigured.
|
||||
#./dante.nix
|
||||
./paste.nix
|
||||
./btcpayserver.nix
|
||||
./btc.nix
|
||||
./vaultwarden.nix
|
||||
|
|
|
|||
26
services/paste.nix
Normal file
26
services/paste.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
let
|
||||
pastePort = 8087;
|
||||
onionUrl = "http://s4h5nfnwwhzku55opxlqouobioibx4htwygnp2l4fkp256lur5s53rad.onion";
|
||||
in
|
||||
{
|
||||
services.microbin = {
|
||||
enable = true;
|
||||
settings = {
|
||||
MICROBIN_PORT = pastePort;
|
||||
MICROBIN_ENABLE_BURN_AFTER = true;
|
||||
MICROBIN_QR = true;
|
||||
MICROBIN_NO_LISTING = true;
|
||||
MICROBIN_HIGHLIGHTSYNTAX = true;
|
||||
MICROBIN_PUBLIC_PATH = "https://paste.distrust.network/";
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."https://paste.distrust.network ${onionUrl}".extraConfig = ''
|
||||
reverse_proxy localhost:${toString pastePort}
|
||||
header Onion-Location ${onionUrl}
|
||||
'';
|
||||
|
||||
services.tor.relay.onionServices."microbin".map = [
|
||||
80
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue