mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: write microbin module
This commit is contained in:
parent
9cd7177636
commit
7322f61648
1 changed files with 27 additions and 0 deletions
27
modules/services/microbin.nix
Normal file
27
modules/services/microbin.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
services = {
|
||||
microbin = {
|
||||
enable = false; # First, find a way to block everything BUT /upload.
|
||||
settings = {
|
||||
MICROBIN_WIDE = true;
|
||||
MICROBIN_MAX_FILE_SIZE_UNENCRYPTED_MB = 2048;
|
||||
MICROBIN_PUBLIC_PATH = "https://paste.liv.town/";
|
||||
MICROBIN_BIND = "127.0.0.1";
|
||||
MICROBIN_PORT = 8070;
|
||||
MICROBIN_HIDE_LOGO = true;
|
||||
MICROBIN_HIGHLIGHTSYNTAX = true;
|
||||
MICROBIN_HIDE_HEADER = true;
|
||||
MICROBIN_HIDE_FOOTER = true;
|
||||
};
|
||||
};
|
||||
nginx.virtualHosts."paste.liv.town" = {
|
||||
forceSSL = true;
|
||||
sslCertificate = "/var/lib/acme/liv.town/cert.pem";
|
||||
sslCertificateKey = "/var/lib/acme/liv.town/key.pem";
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8080";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue