Code Monkey home page Code Monkey logo

Comments (7)

TomBursch avatar TomBursch commented on May 30, 2024 2

Yes, I'll add the plain html files to the next release and provide some instructions on how to setup nginx for it to work.

from kitchenowl.

fynnos avatar fynnos commented on May 30, 2024 1

Great to hear that!

Since the kitchenowl-web is only an nginx serving a statically build web site (generated from dart, I guess), could you also release the static web app so that people who already have nginx or similar running, can simply serve the files without needing to start a second nginx? Does not seem like much, but it adds up if you run a dozen selfhosted services doing exactly that (and your hosting on a small low-RAM VPS or RaspberryPI-like device)

The backend runs just fine in user mode.

from kitchenowl.

TomBursch avatar TomBursch commented on May 30, 2024 1

Published a new stable release that should fix this issue.
Because you also asked for a sample nginx configuration to host the static files yourself that can be found here: https://github.com/TomBursch/kitchenowl/blob/main/default.conf.template

See https://tombursch.github.io/kitchenowl/get-started/ for the new default setup (just remove FRONT_URL everywhere)

from kitchenowl.

eclairevoyant avatar eclairevoyant commented on May 30, 2024

Which OS and distro is this running on? What command did you run to start the container? Did you install rootless docker for this and if so how?

You will certainly need root inside the container to be able to write to /var, so you would need user namespaces enabled (if this is Linux) and rootless docker installed.

from kitchenowl.

fynnos avatar fynnos commented on May 30, 2024

Thanks for the quick reply. It's Ubuntu 22.04, started as docker compose up -d. I am not using rootless docker.

Imho, the service should not require root inside the container to run. Writing into the container is not really considered good practice. If it is inevitable to start the container with root, it should provide some form of privilege lowering. Running internet-facing services as root (even inside a container) is far from optimal :-)

from kitchenowl.

TomBursch avatar TomBursch commented on May 30, 2024

I agree that it's better for overall security to run nginx in user mode, even in the container. Like you can see in the logs, I'm writing some environment variables to a .env file, this is was needed in the beginning because the setup was a bit different to what it is now. I already looked into ways of removing it, which would also get rid of the front_url variable so many people have problems with.

I can see that you're also running the backend in user mode, did you have any problems with that?

from kitchenowl.

ulimanaio avatar ulimanaio commented on May 30, 2024

#58

from kitchenowl.

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.