!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

331 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena117 Servers

Load older messages


SenderMessageTime
17 Jul 2022
@rendakuenthusiast:imperishable.namerendakuenthusiast this is a block in services.nginx.virtualHosts 04:41:22
@winterqt:nixos.devWinter (she/her)god that's so weird, nix should never segfault, and this isn't even some complex or weird change or anything, it's just a key name...04:42:13
@rendakuenthusiast:imperishable.namerendakuenthusiastwhen colmena applies config to a host, it's not touching /etc/nixos on that host right?04:42:52
@rendakuenthusiast:imperishable.namerendakuenthusiastI seem to have some kind of config there, but that might date back from before I started using colmena for this host04:43:04
@winterqt:nixos.devWinter (she/her)this isn't even getting to the apple stage04:43:51
@winterqt:nixos.devWinter (she/her)it's only evaluating the configuration04:44:00
@winterqt:nixos.devWinter (she/her) * (null) 04:44:09
@rendakuenthusiast:imperishable.namerendakuenthusiasthm04:48:13
@rendakuenthusiast:imperishable.namerendakuenthusiastif I move the block around in the file, that seems to still work04:48:25
@rendakuenthusiast:imperishable.namerendakuenthusiastI'm using a kinda-complicated helper function to actually create the block04:48:37
@rendakuenthusiast:imperishable.namerendakuenthusiastnginx configs have a lot of options04:48:45
@rendakuenthusiast:imperishable.namerendakuenthusiastbut I'm still just deleting the whole thing04:48:50
@winterqt:nixos.devWinter (she/her)

hmm

can you share that function?

04:49:02
@winterqt:nixos.devWinter (she/her)and does the key name have any implication into its result?04:49:28
@winterqt:nixos.devWinter (she/her) * (null) 04:49:35
@winterqt:nixos.devWinter (she/her) * (null) 04:49:41
@rendakuenthusiast:imperishable.namerendakuenthusiast
        vhostLocal = { localPort, addlLocationConfig ? {} }: {
          forceSSL = true;
          enableACME = true;
          listen =  [ {addr = "localhost"; port = customPorts.nginxHttp; ssl = false; }
          { addr = "localhost"; port = customPorts.nginxHttps; ssl = true; }
        ];
        locations = {
          "/" = {
            proxyPass = "http://localhost:${(toString localPort)}";
            extraConfig = ''
              proxy_set_header Host $host;
            '';
          };
        } // addlLocationConfig;
      };

04:50:16
@rendakuenthusiast:imperishable.namerendakuenthusiast and then the actual line is "mydomain.example.com" = vHostLocal { localPort = 3333; }; 04:50:45
@rendakuenthusiast:imperishable.namerendakuenthusiastso deleting that line causes the segfault04:51:12
@rendakuenthusiast:imperishable.namerendakuenthusiastif I replace the function with that block of code, it builds04:52:56
@rendakuenthusiast:imperishable.namerendakuenthusiastbut then if I delete teh whole thing it segfaults again04:53:02
@rendakuenthusiast:imperishable.namerendakuenthusiasthm, it seems like if I delete teh forceSSL and enableACME lines simultaneously, then some kind of error happens04:55:09
@rendakuenthusiast:imperishable.namerendakuenthusiast and then if I delete the enableACME line, I get teh same error 04:55:51
@rendakuenthusiast:imperishable.namerendakuenthusiastthe segfault04:55:54
@winterqt:nixos.devWinter (she/her)
In reply to @rendakuenthusiast:imperishable.name
so deleting that line causes the segfault
huh, not having my domain... as a key makes it segfault?
04:55:56
@winterqt:nixos.devWinter (she/her)

oh huh what

what Nixpkgs revision and Nix version are you using?

04:56:10
@rendakuenthusiast:imperishable.namerendakuenthusiastalso setting it to false04:56:14
@rendakuenthusiast:imperishable.namerendakuenthusiastI'm never sure quite how to figure that out04:56:31
@rendakuenthusiast:imperishable.namerendakuenthusiast in the hive file I have nixpkgs = <nixpkgs>. so that says, use the nixpkgs version on my local system, right? 04:56:49
@rendakuenthusiast:imperishable.namerendakuenthusiastbut I'm not sure how ot figure out what I have running locally04:57:00

Show newer messages


Back to Room ListRoom Version: 6