backend = "http://127.0.0.1:${toString cfg.settings.port}";
in mkIf cfg.nginx.enable {
enable = mkDefault true;
+ eventsConfig = ''
+ worker_connections 20000;
+ '';
appendHttpConfig = ''
map "$request_method:$http_accept" $proxpass {
# If no explicit matches exists below, send traffic to lemmy-ui