added ability to make temporary upload sites on cirrostratus.

This commit is contained in:
Gabe Venberg 2025-04-12 11:28:01 +02:00
parent 86f3b1177d
commit cf33c036dd
4 changed files with 26 additions and 4 deletions

View file

@ -0,0 +1,22 @@
{
inputs,
config,
pkgs,
lib,
...
}: let
port = "5050";
in {
# this is so you can start miniserve in a directory to temporarily allow people to upload:
# miniserve --port=5050 --no-symlinks --upload-files --mkdir --show-wget-footer --auth user:pass ./
environment.systemPackages = with pkgs; [
miniserve
];
services.nginx.virtualHosts."upload.venberg.xyz" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:${port}";
};
};
}