Comments (15)
OK, now I see. I was mislead. I thought I needed to log into the main django application. Instead is was sufficient to log into the admin interface. I managed to configure trax with my mattermost installation now, I think successfully. Thank you very much.
from trax.
Oh, by the way. My modifications:
# diff env.example .env
7c7
< DJANGO_ADMIN_URL=
---
> DJANGO_ADMIN_URL=^admin/
14c14,15
< DJANGO_ALLOWED_HOSTS=.trax.io
---
> #DJANGO_ALLOWED_HOSTS=.trax.io
> DJANGO_ALLOWED_HOSTS=trax.example.com
35c36
< TIME_ZONE=UTC
---
> TIME_ZONE=Europe/Berlin
# diff docker-compose.*
36c36
< - "0.0.0.0:8079:80"
---
> - "127.0.0.1:8001:80"
from trax.
Hi @christianlupus! Inside the DJANGO_ALLOWED_HOSTS=
variable, you should put the domain name used to access your trax instance (trax.example.com
seems invalid in this case).
Can you try that, reload the process and let me know if it works?
from trax.
I replaced my real domain name with example.com
throughout all my comments. I wanted to avoid putting a semi-installed installation of trax publicly on the web while sharing the url to it. Is it save to do so and there are no preconfigured user accounts?
By reloading you mean docker-compose restart
or down
and up -d
or even build
?
from trax.
docker-compose up -d
should do the trick, otherwise stop
then start
It should be safe to share the URL, since you are creating the superuser by hand.
from trax.
OK, I am ok with both. The url is https://trax.christian-wolf.click. I will add the .env
file here as an attachment .env
.
from trax.
Alright, I see nothing wrong with your env file. Without any log, it's hard to debug. You don't have anything at all in docker-compose logs django
?
from trax.
Yes, there is quite something. I will attach the output of your command: django.log or without the color scripts django_clean.log.
from trax.
And no new logs when you are logging in?
EDIT: are you logging on /admin/
?
from trax.
Nope, nothing. This is the strange thing. I would have assumed some message to appear at least.
from trax.
The only thing I could try additionally is set ALLOWED_HOSTS=*
and opening a connection directly to the nginx or django directly using SSH port forwarding.
from trax.
Just to be sure, is the error happening on /admin/
or /accounts/login
?
from trax.
I did not try to connect to /admin
. Just putting in the credentials and submitting opens /accounts/login
with the error.
Update: When trying the admin console, I can log in.
from trax.
Ok, if you can login to the admin, I think we can close the ticket, unless you have other configuration issues ?
I agree this is not ideal (and the other login page is confusing) but I really have no time to maintain Trax anymore these days :/
from trax.
Thank you!
from trax.
Related Issues (20)
- Allow users to setup reminders
- Make the timezone configurable globally and per user HOT 1
- Store token in database
- Retroactive /trax stop hh:mm stops in the future HOT 1
- Automatically close running timers at midnight
- configure dateparser to prefer future dates HOT 1
- Upgrade to latest mattermost in dev, so we can setup webhooks and everything automatically
- Add teams / projects
- Make mattermost/slack integration less coupled, more modular
- Problem with manage.py HOT 6
- Mattermost moving to API version 4 HOT 3
- Fix timezone errors
- Install without docker HOT 3
- After login I got: CSRF verification failed. Request aborted. HOT 6
- Problems during building worker with PostgreSQL 11.5 HOT 4
- Invalid HTTP_HOST header: '127.0.0.1'. You may need to add '127.0.0.1' to ALLOWED_HOSTS. HOT 2
- Better help (for commands)
- Allow to stop in the past
- Allow to list from past
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 trax.