Git Product home page Git Product logo

Comments (5)

bk2204 avatar bk2204 commented on June 4, 2024 1

Okay, I think I understand better where the problem is. It's completely possible to run with the management interface disabled, but it will need to have been run once to create users in the first place. I'll open a PR to improve the text.

from lfs-test-server.

bk2204 avatar bk2204 commented on June 4, 2024

Hey,

Sorry to hear you've been having trouble. In the README, I see the following text:

If the LFS_ADMINUSER and LFS_ADMINPASS variables are set, a rudimentary admin interface can be accessed via http://$LFS_HOST/mgmt. Here you can add and remove users.

It seems to me that may be a little terse to explain things well, but I read it that you would need to set those options to enable the management interface, and therefore implicitly to create users. Can you help me understand a little bit better where your understanding differs so we can update things to be clearer?

from lfs-test-server.

Jazzynupe avatar Jazzynupe commented on June 4, 2024

Well what I was expecting was to be able to use the sample server by just running it with the default credentials.

So passing the default admin and password it should have taken requests for me to do some testing. However this did not work at all and I just got the 401 error message.

I added the environment variables and bingo everything just worked. I thought that the environment variables would only be required if I wanted to customize something about the default server. The readme seems to indicate that it would work without these variables.

Someone new to LFS Server sample might assume that it should work without these settings.

from lfs-test-server.

bk2204 avatar bk2204 commented on June 4, 2024

I don't think there are any default credentials, and I think that's by design, from looking at the code. It looks like you may have been expecting the literal string "unset", but I believe the README means to say that no credentials are set if you don't provide an environment variable.

from lfs-test-server.

Jazzynupe avatar Jazzynupe commented on June 4, 2024

Right and I think that is where the confusion comes from. If I just wanted to do a quick install test I would run with all the defaults before I configured it. When I saw "unset" I thought literally. The readme/examples just could be clarified I think to know that these values MUST be set before it can be used (or marked as REQUIRED).

LFS_ADMINUSER   # An administrator username, default: unset
LFS_ADMINPASS   # An administrator password, default: unset
``

from lfs-test-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.