Coder Social home page Coder Social logo

Comments (2)

Luzifer avatar Luzifer commented on June 11, 2024 1

Hm indeed there is something if the data folder does not exist / has the wrong permissions:

# docker run -d --name nginx-sso -p 127.0.0.1:8082:8082 -v /tmp/sso-config:/data luzifer/nginx-sso

# docker logs nginx-sso
cp: can't create directory '/data/frontend': Permission denied

# sudo mkdir /tmp/sso-config/frontend
# sudo chown -R 1000:1000 /tmp/sso-config/

# docker rm nginx-sso
nginx-sso

# docker run -d --name nginx-sso -p 127.0.0.1:8082:8082 -v /tmp/sso-config:/data luzifer/nginx-sso
e5d1f83cb3e297b2432f9f82062a97abe92f116c62ab729a06a9b99a475e085f

# docker logs nginx-sso
An example configuration was copied to /data/config.yaml - You want to edit that one!

# lt /tmp/sso-config
drwxr-xr-x    - luzifer luzifer 27 Mar 21:10 /tmp/sso-config
.rw-r--r-- 5.0k luzifer luzifer 27 Mar 21:10 ├── config.yaml
drwxr-xr-x    - luzifer luzifer 27 Mar 21:10 └── frontend
.rw-r--r-- 5.4k luzifer luzifer 27 Mar 21:10    └── index.html

Try creating the /data/sso-config/frontend dir and chown -R 1000:1000 /data/sso-config before running the container.

After you've edited the config you need to start the container again (when generating the example config it will exit afterwards as you probably don't want to work with those defaults).

I'm assigning this issue to the v1.x Milestone to build a proper fix in there.

from nginx-sso.

ohitsdylan avatar ohitsdylan commented on June 11, 2024

Thanks for the quick reply! And the spot-on troubleshooting. That was exactly the issue.

I created the directories and adjusted the permissions and the logs reflect that the example configuration file was created.

from nginx-sso.

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.