feat: working tunnel with audio books
This commit is contained in:
		
							parent
							
								
									d4a85d3d91
								
							
						
					
					
						commit
						dbd396f613
					
				|  | @ -1,8 +1,7 @@ | ||||||
| { config, ... }: | { ... }: | ||||||
| 
 | 
 | ||||||
| let | let | ||||||
|   domain = "books.sondell.org"; |   domain = "books.sondell.org"; | ||||||
| 	# derp = "hi"; |  | ||||||
| in | in | ||||||
| { | { | ||||||
|   #  |   #  | ||||||
|  | @ -11,16 +10,13 @@ in | ||||||
|     port = 8000; |     port = 8000; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|  |   services.nginx.enable = true; | ||||||
| 
 | 
 | ||||||
|   services.nginx.virtualHosts.${domain} = { |   services.nginx.virtualHosts.${domain} = { | ||||||
|     enableACME = true; |     default = true; | ||||||
|     forceSSL = true; |  | ||||||
|     locations."/" = { |     locations."/" = { | ||||||
|       proxyPass = "http://localhost:8000/"; |       proxyPass = "http://localhost:8000/"; | ||||||
|       proxyWebsockets = true; |       proxyWebsockets = true; | ||||||
|       # extraConfig = '' |  | ||||||
|       #   access_log /var/log/nginx/access.log main if=$forgejo_access_log; |  | ||||||
|       # ''; |  | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -110,6 +110,7 @@ | ||||||
|   environment.systemPackages = with pkgs; [ |   environment.systemPackages = with pkgs; [ | ||||||
|   #  vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. |   #  vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. | ||||||
|   #  wget |   #  wget | ||||||
|  |     cloudflared | ||||||
|     filebrowser |     filebrowser | ||||||
|     git |     git | ||||||
|     helix |     helix | ||||||
|  |  | ||||||
							
								
								
									
										15
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								flake.nix
									
									
									
									
									
								
							|  | @ -8,14 +8,15 @@ | ||||||
|       specialArgs = attrs; |       specialArgs = attrs; | ||||||
|       modules = [  |       modules = [  | ||||||
|         ./configuration.nix  |         ./configuration.nix  | ||||||
|         ./forgejo.nix  |  | ||||||
|         ./nextcloud.nix  |  | ||||||
|         ./audiobooks.nix  |         ./audiobooks.nix  | ||||||
|         ./jellyfin.nix  |         ./tunnel.nix | ||||||
|         ./filebrowser.nix |         # ./forgejo.nix  | ||||||
|         ./matrix.nix |         # ./nextcloud.nix  | ||||||
|         ./tail.nix |         # ./jellyfin.nix  | ||||||
|         ./coturn.nix |         # ./filebrowser.nix | ||||||
|  |         # ./matrix.nix | ||||||
|  |         # ./tail.nix | ||||||
|  |         # ./coturn.nix | ||||||
|       ]; |       ]; | ||||||
| 
 | 
 | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
							
								
								
									
										15
									
								
								tunnel.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tunnel.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | ||||||
|  | {...}: | ||||||
|  | { | ||||||
|  |  services.cloudflared = { | ||||||
|  |   enable = true; | ||||||
|  |   tunnels = { | ||||||
|  |     "tulpan" = { | ||||||
|  |       credentialsFile = "/etc/nixos/.secrets/tulpan-tunnel.json"; | ||||||
|  |       default = "http_status:404"; | ||||||
|  |       ingress = { | ||||||
|  |         "*.sondell.org" = "http://localhost:80"; | ||||||
|  |       }; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | };  | ||||||
|  | } | ||||||
		Loading…
	
		Reference in a new issue
	
	 admin
						admin