forked from fediversity/fediversity
		
	Fixed list layout and finished map example.
This commit is contained in:
		
							parent
							
								
									2ef437e13c
								
							
						
					
					
						commit
						b0991b4173
					
				
					 1 changed files with 17 additions and 6 deletions
				
			
		|  | @ -14,12 +14,12 @@ changing from network sockets to UNIX sockets. | |||
| Because we're going to have to forward a lot of specific requests to all kinds | ||||
| of workers, we'll split the configuration into a few bits: | ||||
| 
 | ||||
| ** all `proxy_forward` settings | ||||
| ** all `location` definitions | ||||
| ** maps that define variables | ||||
| ** upstreams that point to the correct socket(s) with the correct settings | ||||
| ** settings for private access | ||||
| ** connection optimizations | ||||
| * all `proxy_forward` settings | ||||
| * all `location` definitions | ||||
| * maps that define variables | ||||
| * upstreams that point to the correct socket(s) with the correct settings | ||||
| * settings for private access | ||||
| * connection optimizations | ||||
| 
 | ||||
| Some of these go into `/etc/nginx/conf.d` because they are part of the | ||||
| configuration of nginx itself, others go into `/etc/nginx/snippets` because we | ||||
|  | @ -60,3 +60,14 @@ map $arg_since $sync { | |||
| We filter the argument `since` by using `$arg_since`, see [the index of | ||||
| variables in nginx](https://nginx.org/en/docs/varindex.html) for more | ||||
| variables we can use. | ||||
| 
 | ||||
| By default we set `$sync` to `normal_sync`, unless the argument `since` is | ||||
| empty (absent); then we set `$sync` to `initial_sync`. | ||||
| 
 | ||||
| After that, we forward the request: | ||||
| 
 | ||||
| ``` | ||||
| proxy_pass http://$sync; | ||||
| ``` | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Hans van Zijst
						Hans van Zijst