question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi If I log in as an admin, and then proceed to the root URL “/”, then I get a Uhh what did you just do? (500) error. I think it should show the template corresponding to the “index” route.

Also if a team logs in before the CTF has started, then also a 500 error page is rendered just after login.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
viyatbcommented, Feb 7, 2016

So I pulled and tested, but it did not change anything. This works for me:

to CTFd/__init__.py add:

from werkzeug.contrib.fixers import ProxyFix
app.wsgi_app = ProxyFix(app.wsgi_app)

and the following Nginx conf:

proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host your.project.domain.org;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://unix:/root/gunicorn.sock;

This fix even works when I enable CloudFlare for the domain. Ofcourse it is not for everybody (those who do not use a reverse proxy for deployment 😛 ) but you should probably add this to the wiki.

0reactions
ColdHeatcommented, Feb 6, 2016

I’m reasonably sure 85e8a9d should address this issue. If anything it clears up some IP tracking issues.

EDIT: Actually closed in c336ad6fd13a8e8437651319d39f595b9931b3c6

Read more comments on GitHub >

github_iconTop Results From Across the Web

30 Usability Issues To Be Aware Of - Smashing Magazine
In this article we present 30 important usability issues, terms, rules and principles which are usually forgotten, ignored or misunderstood.
Read more >
10 Key Mobile Usability Issues - UX Planet
10 critical usability issues and practical recommendations on to avoid when working on your mobile design · 1. Visual clutter · 2. Unclear ......
Read more >
20 Key Usability Issues you Need to Know - WatchThemLive
Usability Issues in Mobile Applications · 1. The Lack of Compatibility with Different Devices · 2. Vague Content · 3. The Lack of...
Read more >
20 Common usability issues to look out for - on the web
1. Excessive clicks and submenu · 2. Unclear UI · 3. Slow loading websites · 4. Inconsistency · 5. Poor Error Messages ·...
Read more >
What are Usability Issues? Do they Matter? - Medium
Usability Issues · Behaviour that prevents task completion · Behaviours that take users off course · Frustration expressed by employees · Missing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found