halverneus / static-file-server

Tiny, simple static file server using environment variables for configuration
MIT License
400 stars 77 forks source link

Access Key #90

Open domesticwarlord86 opened 1 year ago

domesticwarlord86 commented 1 year ago

Is it possible to have multiple access keys set? I attempted to set them using commas, but it was just treated as a single key. For example: access-key=12345,678910

I would expect to be able to access the file with http://my.domance/Test.xml?key=12345 as well as http://my.domance/Test.xml?key=678910. However, access was only granted when using http://my.domance/Test.xml?key=12345,678910

halverneus commented 1 year ago

At the moment this is not an option. This is a feature that could be added. I would be hesitant to assign it using a delimiter that is an allowed URL character. Perhaps a character such as "&" so there is no concern about breaking any backward-compatibility (though it is unlikely anyone is using a comma, I would still consider it a breaking change)?

domesticwarlord86 commented 1 year ago

& would work fine for me.

halverneus commented 1 year ago

I'll add it to my queue. This has been a busy month, but I'll probably get to it soon.