webapp not working #57
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
KittenSquad/glewlwyd#57
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?
Hi Nicolas!
I am unable to use Glewlwyd admin page with the following error:
Can you help me with it?
Glewlwyd version 2.0.0-b1 on Devuan 9.
My configuration:
glewlwyd.conf
port=4593
external_url="http://localhost:4593"
login_url="login.html"
url_prefix="api"
static_files_path="/usr/share/glewlwyd/webapp"
allow_origin="*"
log_mode="console"
log_level="DEBUG"
session_expiration=2419200
session_key="GLEWLWYD2_SESSION_ID"
admin_scope="g_admin"
profile_scope="g_profile"
user_module_path="/usr/local/lib/glewlwyd/user"
client_module_path="/usr/local/lib/glewlwyd/client"
user_auth_scheme_module_path="/usr/local/lib/glewlwyd/scheme"
plugin_module_path="/usr/local/lib/glewlwyd/plugin"
use_secure_connection=false
hash_algorithm = "SHA512"
database =
{
type = "mariadb"
host = "localhost"
user = "glewlwyd"
password = "glewlwyd"
dbname = "glewlwyd"
port = 0
}
config.json
{
"GlewlwydApiUrl": "http://localhost:4593",
"ProfileUrl": "http://localhost:4593/profile.html",
"AdminUrl": "http://localhost:4593/index.html",
"LoginUrl": "http://localhost:4593/login.html",
...
Thanks!
Hello @yandoogle , thanks for the issue.
I think it's simple-but-dummy bug from me on the
glewlwyd.conffile that I fixed earlier. I missed to add the json format in the static files mime types...To fix this, open your glewlwyd.conf file, add the following block in the
static_files_mime_typesarray (at the end of the glewlwyd.conf file):If this doesn't fix your problem, let me know, I'll dig deeper.
Thanks for your quick response, @babelouest.
I tried to add these lines to configuration file earlier because the glewlwyd server reported about absent application/json mime_type directly at log.
Unfortunately, this does not solve my problem.
And that's another round on me!
In the provided
webapp/config.json.samplefile, the first parameter key isGlewlwydApiUrl, it has been renamed lately toGlewlwydUrlbut I forgot to push the changes in the sample file.So your
config.jsonfile should looke like:Thanks again @yandoogle !
Yes it is.
@babelouest thanks again and good luck in the development of a great project!
Thanks!
Don't hesitate to open new issues if you found other problems or if you have other questions.