Cannot manage Glewlwyd #32
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
KittenSquad/glewlwyd#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hey there, coming from rafaelhdr/glewlwyd-oauth2-server#3, I just set up glewlwyd on a test server behind nginx (which handles SSL, among others). I followed the installation steps to the point and got Glewlwyd running, the web app is accessible, I can log in, too. But the index page continues to tell me both "Hello username" and "Please log in to the application":

Clicking on login, I'm told "You are connected as username, What do you wish for?". I can successfully change my profile data at
/profile.html.Looking at the sessions table, though, there seems to be something wrong:

For reference, here's my nginx configuration which should fine, I think. What it does:
/apiand/configthrough the glewlwyd upstreamRelevant
glewlwyd.conflines:Any idea what is wrong here? I'm sure I've made a stupid mistake somewhere.
Ah-ha! Got the misfit. To work with Glewlwyd, nginx needs the following additional proxy directives:
...which is strange - I've reverse-proxied several applications behind nginx but never needed to manually pass the Auth header. Oh well, there it is.
Maybe this configuration may help someone else.
Hello @Radiergummi ,
I was writing to you that I don't know yet how to solve your problem, good thing you found out before I click the
Commentbutton :)Does this mean that you now have Glewlwyd working properly?
Anyway, that's a very good thing to know, I will update the documentation to add nginx special tricks, thanks!
Hi @babelouest,
yep, I got it working properly as far as I can see... There's only one issue left - as you've maybe seen from the configuration above, I've set the webapp URL to
/admin- just personal preference. That works almost, but there's a hard coded reference to/appin glewlwyd.react.js on line 48. I've tried to rename it to my URI, but that seems to lock me out from actually managing Glewlwyd, so I just created a rewrite rule to redirect/app/index.htmlto/admin/index.html.Wondering why this happens, though? Maybe it's because changing the configuration changes my JWT, too?
And thank you for clarifying the name, I like that idea!
I'll make a new issue for the prefix problem then, thanks, I'm closing this issue now.