You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am doing a new install of Etebase (planning to migrate my existing self hosted Etesync 1.0 data to Etebase). I set it up using the instructions in the Readme, Basic Setup and Production Setup. Reached up to the point where nginx is set up to serve the website on port 8000 and communicate with etebase using web port 8001. The admin page comes up correctly but when I enter the superuser credentials, I get the 403 error CSRF verification failed. Request aborted.
I then disabled the nginx site by deleting /etc/nginx/sites-enabled/etebase_nginx.conf and restarting nginx. I then asked uvicorn to serve the site directly on port 8000. When I do this, authentication goes through correctly, and I am presented with the site administration page. So the issue is with some interaction between the etebase_nginx.conf configuration and the etebase.ini configuration. I am not at all familiar with Django, but I understand that CSRF verification failed is related to allowed hosts, but I would think that allowed_host1 = * should cover everything. What else could be going wrong?
Any pointers on how I can debug this?
The text was updated successfully, but these errors were encountered:
@jrvarma did you try putting your real domain name in allowed_host1 variabel instead of * ?
Also do you have proxy_set_header Host $host; in the nginx configuration ?
I am doing a new install of Etebase (planning to migrate my existing self hosted Etesync 1.0 data to Etebase). I set it up using the instructions in the Readme, Basic Setup and Production Setup. Reached up to the point where
nginx
is set up to serve the website on port 8000 and communicate withetebase
using web port 8001. Theadmin
page comes up correctly but when I enter the superuser credentials, I get the 403 errorCSRF verification failed. Request aborted.
I then disabled the
nginx
site by deleting/etc/nginx/sites-enabled/etebase_nginx.conf
and restartingnginx
. I then askeduvicorn
to serve the site directly on port 8000. When I do this, authentication goes through correctly, and I am presented with the site administration page. So the issue is with some interaction between theetebase_nginx.conf
configuration and theetebase.ini
configuration. I am not at all familiar with Django, but I understand thatCSRF verification failed
is related to allowed hosts, but I would think thatallowed_host1 = *
should cover everything. What else could be going wrong?Any pointers on how I can debug this?
The text was updated successfully, but these errors were encountered: