Loading nixos/modules/services/web-apps/gancio.nix +12 −13 Original line number Diff line number Diff line Loading @@ -59,19 +59,12 @@ in description = "The URL path under which the server is reachable."; }; server = { host = mkOption { type = types.str; default = "localhost"; example = "::"; description = '' The address (IPv4, IPv6 or DNS) for the gancio server to listen on. ''; }; port = mkOption { type = types.port; default = 13120; socket = mkOption { type = types.path; readOnly = true; default = "/run/gancio/socket"; description = '' Port number of the gancio server to listen on. The unix socket for the gancio server to listen on. ''; }; }; Loading Loading @@ -231,6 +224,10 @@ in serviceConfig = { ExecStart = "${getExe cfg.package} start ${configFile}"; # set umask so that nginx can write to the server socket # FIXME: upstream socket permission configuration in Nuxt UMask = "0002"; RuntimeDirectory = "gancio"; StateDirectory = "gancio"; WorkingDirectory = "/var/lib/gancio"; LogsDirectory = "gancio"; Loading Loading @@ -274,12 +271,14 @@ in }; "@proxy" = { proxyWebsockets = true; proxyPass = "http://${cfg.settings.server.host}:${toString cfg.settings.server.port}"; proxyPass = "http://unix:${cfg.settings.server.socket}"; recommendedProxySettings = true; }; }; } ]; }; # for nginx to access gancio socket users.users."${config.services.nginx.user}".extraGroups = [ config.users.users.${cfg.user}.group ]; }; } nixos/tests/gancio.nix +1 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ import ./make-test-python.nix ( server.wait_for_unit("postgresql") server.wait_for_unit("gancio") server.wait_for_unit("nginx") server.wait_for_open_port(13120) server.wait_for_file("/run/gancio/socket") server.wait_for_open_port(80) # Check can create user via cli Loading Loading
nixos/modules/services/web-apps/gancio.nix +12 −13 Original line number Diff line number Diff line Loading @@ -59,19 +59,12 @@ in description = "The URL path under which the server is reachable."; }; server = { host = mkOption { type = types.str; default = "localhost"; example = "::"; description = '' The address (IPv4, IPv6 or DNS) for the gancio server to listen on. ''; }; port = mkOption { type = types.port; default = 13120; socket = mkOption { type = types.path; readOnly = true; default = "/run/gancio/socket"; description = '' Port number of the gancio server to listen on. The unix socket for the gancio server to listen on. ''; }; }; Loading Loading @@ -231,6 +224,10 @@ in serviceConfig = { ExecStart = "${getExe cfg.package} start ${configFile}"; # set umask so that nginx can write to the server socket # FIXME: upstream socket permission configuration in Nuxt UMask = "0002"; RuntimeDirectory = "gancio"; StateDirectory = "gancio"; WorkingDirectory = "/var/lib/gancio"; LogsDirectory = "gancio"; Loading Loading @@ -274,12 +271,14 @@ in }; "@proxy" = { proxyWebsockets = true; proxyPass = "http://${cfg.settings.server.host}:${toString cfg.settings.server.port}"; proxyPass = "http://unix:${cfg.settings.server.socket}"; recommendedProxySettings = true; }; }; } ]; }; # for nginx to access gancio socket users.users."${config.services.nginx.user}".extraGroups = [ config.users.users.${cfg.user}.group ]; }; }
nixos/tests/gancio.nix +1 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,7 @@ import ./make-test-python.nix ( server.wait_for_unit("postgresql") server.wait_for_unit("gancio") server.wait_for_unit("nginx") server.wait_for_open_port(13120) server.wait_for_file("/run/gancio/socket") server.wait_for_open_port(80) # Check can create user via cli Loading