ma mycube.connector.one: cleanup

This commit is contained in:
makefu 2021-01-27 23:03:29 +01:00
parent ae3f6ff1ac
commit 2cd994a1be
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -1,15 +1,12 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
# more than just nginx config but not enough to become a module # more than just nginx config but not enough to become a module
with import <stockholm/lib>;
let let
hostname = config.krebs.build.host.name; hostname = config.krebs.build.host.name;
external-ip = config.krebs.build.host.nets.internet.ip4.addr; external-ip = config.krebs.build.host.nets.internet.ip4.addr;
wsgi-sock = "${config.services.uwsgi.runDir}/uwsgi.sock"; wsgi-sock = "${config.services.uwsgi.runDir}/uwsgi.sock";
in { in {
services.redis = { services.redis = { enable = true; };
enable = true; systemd.services.redis.serviceConfig.LimitNOFILE=65536;
};
systemd.services.redis.serviceConfig.LimitNOFILE=10032;
services.uwsgi = { services.uwsgi = {
enable = true; enable = true;
@ -28,7 +25,7 @@ in {
}; };
services.nginx = { services.nginx = {
enable = mkDefault true; enable = lib.mkDefault true;
virtualHosts."mybox.connector.one" = { virtualHosts."mybox.connector.one" = {
locations = { locations = {
"/".extraConfig = '' "/".extraConfig = ''