linx-server icon indicating copy to clipboard operation
linx-server copied to clipboard

authfile is not authentication for file uploads

Open d3lac opened this issue 4 years ago • 1 comments

Hello,

https://github.com/ZizzyDizzyMC/linx-server#require-api-keys-for-uploads

I have setup auth key using https://github.com/ZizzyDizzyMC/linx-server/tree/master/linx-genkey

I have created an authfile under /home/user/authfile and pasted the above auth key generated. Also added basicauth = true and authfile = /home/slow/authfile inside linx-server.conf

When running docker compose, I get linx-server | 2021/12/19 16:29:38 Failed to open authfile: open /home/user/authfile: no such file or directory I checked permission of the authfile (no issues).

Please provide more instructions on how to setup authentication for uploading files instead of having a public instance.

d3lac avatar Dec 19 '21 16:12 d3lac

I placed the auth file within docker volume for meta (the dir where meta files are located) and added to .conf as authfile = /data/meta/linx-auth.txt

With basicauth = true I do get the browser login prompt. But without basic auth I can only visit /api part of the site.

How do I access the file upload without basicauth?

dotcomUNDERGROUND avatar Sep 18 '22 20:09 dotcomUNDERGROUND