forked from jan-leila/nix-config
		
	added extra config to immich proxy
This commit is contained in:
		
							parent
							
								
									3ec99b599b
								
							
						
					
					
						commit
						6614c4a553
					
				
					 1 changed files with 21 additions and 0 deletions
				
			
		|  | @ -19,6 +19,27 @@ in { | |||
|       host = { | ||||
|         reverse_proxy.subdomains.${config.host.immich.subdomain} = { | ||||
|           target = "http://localhost:${toString config.services.immich.port}"; | ||||
|           extraConfig = '' | ||||
|             # allow large file uploads | ||||
|             client_max_body_size 50000M; | ||||
| 
 | ||||
|             # Set headers | ||||
|             proxy_set_header Host              $host; | ||||
|             proxy_set_header X-Real-IP         $remote_addr; | ||||
|             proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for; | ||||
|             proxy_set_header X-Forwarded-Proto $scheme; | ||||
| 
 | ||||
|             # enable websockets: http://nginx.org/en/docs/http/websocket.html | ||||
|             proxy_http_version 1.1; | ||||
|             proxy_set_header   Upgrade    $http_upgrade; | ||||
|             proxy_set_header   Connection "upgrade"; | ||||
|             proxy_redirect     off; | ||||
| 
 | ||||
|             # set timeout | ||||
|             proxy_read_timeout 600s; | ||||
|             proxy_send_timeout 600s; | ||||
|             send_timeout       600s; | ||||
|           ''; | ||||
|         }; | ||||
|         postgres = { | ||||
|           enable = true; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue