You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to oTree help & discussion
Hello,
I am trying to host otree on a Linux Server and serve it with https behind nginx.
As an aside: if anyone encounters a uvicorn error "Unsupported upgrade request.", it's fixed by installing uvicon[standard] (more info here):
pip3 uninstall -y uvicorn
pip3 install uvicorn[standard]
Back to the problem I run into: now I have a working nginx+Let's encrypt+otree setup, except for the fact that some links and redirects include hardcoded "http://" URLs rather than "https://" and then the navigation is broken. For instance, let's say my server is reachable at https://otreedemo.net
Nevertheless, I still think it could be interesting to set uvicorn options (for instance specifying certificates https://www.uvicorn.org/deployment/#running-with-https) from oTree, and thus be able to tweak the config here: