forked from jan-leila/nix-config
		
	simplified nginx config
This commit is contained in:
		
							parent
							
								
									4c430404b3
								
							
						
					
					
						commit
						2350eb43ec
					
				
					 6 changed files with 71 additions and 72 deletions
				
			
		|  | @ -19,26 +19,19 @@ in { | |||
|       host = { | ||||
|         reverse_proxy.subdomains.${config.host.immich.subdomain} = { | ||||
|           target = "http://localhost:${toString config.services.immich.port}"; | ||||
| 
 | ||||
|           websockets.enable = true; | ||||
|           forwardHeaders.enable = true; | ||||
| 
 | ||||
|           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; | ||||
|             proxy_redirect     off; | ||||
|           ''; | ||||
|         }; | ||||
|         postgres = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue