added ability to make temporary upload sites on cirrostratus.
This commit is contained in:
parent
86f3b1177d
commit
cf33c036dd
4 changed files with 26 additions and 4 deletions
22
configs/nixos/miniserve-tmp-upload.nix
Normal file
22
configs/nixos/miniserve-tmp-upload.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue