edolstra / nix-serve

A standalone Nix binary cache server
GNU Lesser General Public License v2.1
163 stars 37 forks source link

kindly warn on bad values in NIX_SECRET_KEY_FILE #40

Closed asdf8dfafjk closed 5 months ago

asdf8dfafjk commented 2 years ago

I have given it a non-existant file, and a file with bad values and I get no warning.

jfeser commented 2 years ago

+1. I just ran into #10, and it would really help if nix-serve exited with an error when you fail to pass a key. Also, the readme doesn't make it clear that providing a secret key is not optional.

asdf8dfafjk commented 2 years ago

Hey @jfeser I can't get nix-serve to work at all no matter what. Which guide did you try to get it work for you if you did?

jfeser commented 2 years ago

I followed the readme. What errors are you seeing?

asdf8dfafjk commented 2 years ago

@jfeser The readme of this repo? So the sense I got from the readme was that signing was optional. That said, I did try both unsigned first and then signed version later but I just could not get substitution to work. I'm going to try again next time and post errors here.