mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 02:14:50 -04:00
Run complement with Synapse workers manually. (#10039)
Adds an option to complement.sh to run Synapse in worker mode (instead of the default monolith mode).
This commit is contained in:
parent
7adcb20fc0
commit
7d90d6ce9b
3 changed files with 27 additions and 7 deletions
|
@ -184,18 +184,18 @@ stderr_logfile_maxbytes=0
|
|||
"""
|
||||
|
||||
NGINX_LOCATION_CONFIG_BLOCK = """
|
||||
location ~* {endpoint} {
|
||||
location ~* {endpoint} {{
|
||||
proxy_pass {upstream};
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host $host;
|
||||
}
|
||||
}}
|
||||
"""
|
||||
|
||||
NGINX_UPSTREAM_CONFIG_BLOCK = """
|
||||
upstream {upstream_worker_type} {
|
||||
upstream {upstream_worker_type} {{
|
||||
{body}
|
||||
}
|
||||
}}
|
||||
"""
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue