forked from Fediversity/Fediversity
Fixed list layout and finished map example.
This commit is contained in:
parent
2ef437e13c
commit
b0991b4173
|
@ -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
|
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:
|
of workers, we'll split the configuration into a few bits:
|
||||||
|
|
||||||
** all `proxy_forward` settings
|
* all `proxy_forward` settings
|
||||||
** all `location` definitions
|
* all `location` definitions
|
||||||
** maps that define variables
|
* maps that define variables
|
||||||
** upstreams that point to the correct socket(s) with the correct settings
|
* upstreams that point to the correct socket(s) with the correct settings
|
||||||
** settings for private access
|
* settings for private access
|
||||||
** connection optimizations
|
* connection optimizations
|
||||||
|
|
||||||
Some of these go into `/etc/nginx/conf.d` because they are part of the
|
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
|
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
|
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 in nginx](https://nginx.org/en/docs/varindex.html) for more
|
||||||
variables we can use.
|
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…
Reference in a new issue