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
				
			
		| 
						 | 
				
			
			@ -18,6 +18,8 @@
 | 
			
		|||
        EULA = "TRUE";
 | 
			
		||||
        TYPE = "FORGE";
 | 
			
		||||
        VERSION = "1.20.1";
 | 
			
		||||
        # GENERIC_PACK="https://static.venberg.xyz/minecraft/create-post-production/modpack.zip";
 | 
			
		||||
        # REMOVE_OLD_MODS="TRUE";
 | 
			
		||||
        PACKWIZ_URL = "https://static.venberg.xyz/minecraft/less-than-compact-2/pack.toml";
 | 
			
		||||
        MEMORY = "16G";
 | 
			
		||||
        USE_AIKAR_FLAGS = "true";
 | 
			
		||||
| 
						 | 
				
			
			@ -29,9 +31,7 @@
 | 
			
		|||
        # SETUP_ONLY = "true";
 | 
			
		||||
        MOTD = "Welcome!";
 | 
			
		||||
        DIFFICULTY = "normal";
 | 
			
		||||
        OPS = ''
 | 
			
		||||
          TheToric
 | 
			
		||||
        '';
 | 
			
		||||
        OPS ="TheToric";
 | 
			
		||||
        ENFORCE_WHITELIST = "true";
 | 
			
		||||
        ENABLE_WHITELIST = "true";
 | 
			
		||||
        ANNOUNCE_PLAYER_ACHIEVEMENTS = "true";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										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