Comments (2)
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.
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)
- Logging very picky? HOT 1
- Creating plugin HOT 5
- Is it possible to use OpenID roles/attributes? HOT 2
- access_denied after successful login HOT 2
- Feature request: allow multiple domains for google auth 'require_domain' option. HOT 1
- Support for PAM authentication HOT 2
- Add ARM support HOT 16
- allow nginx-sso in path HOT 2
- Add user name to Nginx header HOT 2
- Can access sso protected webapp after logout. not sure why HOT 3
- Multiple Domains HOT 4
- No release for latest tagged version HOT 1
- Add support for templating / environment variables in config file HOT 2
- cp: can't create directory '/data/frontend': Permission denied HOT 3
- change Bootstrap theme via config HOT 2
- user:pass cookie sessions dont expire when manually manipulating the cookie expiry HOT 1
- no valid user found (google_auth) HOT 1
- How do I use the preferred_username for OIDC connect HOT 1
- Version 1.x Planning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-sso.