forked from fediversity/fediversity
		
	Fix Peertube service
This commit is contained in:
		
							parent
							
								
									79730bfd38
								
							
						
					
					
						commit
						a5875376b8
					
				
					 2 changed files with 26 additions and 4 deletions
				
			
		|  | @ -11,6 +11,10 @@ lib.mkIf (config.fediversity.enable && config.fediversity.peertube.enable) { | |||
|   networking.firewall.allowedTCPPorts = [ | ||||
|     80 | ||||
|     443 | ||||
| 
 | ||||
|     ## For Live streaming and Live streaming when RTMPS is enabled. | ||||
|     1935 | ||||
|     1936 | ||||
|   ]; | ||||
| 
 | ||||
|   services.garage = { | ||||
|  | @ -70,6 +74,8 @@ lib.mkIf (config.fediversity.enable && config.fediversity.peertube.enable) { | |||
|         enabled = true; | ||||
|         endpoint = config.fediversity.internal.garage.api.url; | ||||
|         region = "garage"; | ||||
|         upload_acl.public = null; # Garage does not support ACL | ||||
|         upload_acl.private = null; # Garage does not support ACL | ||||
| 
 | ||||
|         # not supported by garage | ||||
|         # SEE: https://garagehq.deuxfleurs.fr/documentation/connect/apps/#peertube | ||||
|  | @ -101,7 +107,11 @@ lib.mkIf (config.fediversity.enable && config.fediversity.peertube.enable) { | |||
| 
 | ||||
|   ## Proxying through Nginx | ||||
| 
 | ||||
|   services.peertube.configureNginx = true; | ||||
|   services.peertube = { | ||||
|     configureNginx = true; | ||||
|     listenWeb = 443; | ||||
|     enableWebHttps = true; | ||||
|   }; | ||||
|   services.nginx.virtualHosts.${config.services.peertube.localDomain} = { | ||||
|     forceSSL = true; | ||||
|     enableACME = true; | ||||
|  |  | |||
|  | @ -1,11 +1,23 @@ | |||
| { modulesPath, ... }: | ||||
| { | ||||
|   modulesPath, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| 
 | ||||
| { | ||||
| 
 | ||||
|   imports = [ (modulesPath + "/virtualisation/qemu-vm.nix") ]; | ||||
| 
 | ||||
|   fediversity = { | ||||
|     enable = true; | ||||
|     domain = "localhost"; | ||||
|     peertube.enable = true; | ||||
| 
 | ||||
|     temp.peertubeSecretsFile = pkgs.writeText "secret" '' | ||||
|       574e093907d1157ac0f8e760a6deb1035402003af5763135bae9cbd6abe32b24 | ||||
|     ''; | ||||
|   }; | ||||
| 
 | ||||
|   services.peertube = { | ||||
|     enableWebHttps = false; | ||||
|     settings = { | ||||
|       listen.hostname = "0.0.0.0"; | ||||
|       instance.name = "PeerTube Test VM"; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue