ma mycube.connector.one: cleanup
This commit is contained in:
parent
ae3f6ff1ac
commit
2cd994a1be
@ -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 = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user