Skip to content

Instantly share code, notes, and snippets.

@brknkfr
brknkfr / nginx.conf
Last active February 9, 2024 15:35 — forked from artizirk/nginx.conf
Nginx config for scaling matrix synapse server via workers
# Matrix Synapse workers example config
# backends
upstream synapse_main {
server 192.168.11.19:8008;
}
upstream synapse_client {
hash $mxid_localpart consistent;
server 192.168.11.19:8010;
server 192.168.11.19:8011;
From e4db4f07e77feb1c126e7afbf441e9eae34b4e57 Mon Sep 17 00:00:00 2001
From: Kelvie Wong <kelvie@kelvie.ca>
Date: Sun, 2 Oct 2022 13:23:25 -0700
Subject: [PATCH] Add a lockdown_hibernate parameter
This allows the user to tell the kernel that they know better (namely,
they secured their swap properly), and that it can enable hibernation.
Signed-off-by: Kelvie Wong <kelvie@kelvie.ca>
---