You just need to adjutst the domain.com variable with the public domain you want to expose the server and update the 8000 port to the port you want to redirct the request.
Certainly, you know much more about it than I do. So, our assumption was that a system-wide uwsgi would improve performance; on the other side we have flexibility to run different version and module sets in VENVs. Tell me if that’s nonsense.
I almost think it’s the other way around. When you install uwsgi in your virtual environment, the installer wants to compile uwsgi, so I would assume that the compiler would optimize uwsgi, based on the system libraries it finds.
Ever thought about using sockets?
But NginX should then also have the port so you can use something like:
Have you done a nginx -t ? This command will check if your NginX configuration is right. And from what I can see, it’s not. I’m not going to tell you what is wrong … but a good indentation will help a lot.
Also you are listening on port 8001 with NginX and probably also with Tryton. Those two are colliding and the first service started will win.
I tried several setups with one and two port numbers, I could not make one of these work. I asked at serverfault how to deal with different port numbers, but did not get any reply. So in the end I got the impression that it I’m too stupid (most likely) or it’s not supported. So i asked my admin for a batch of subdomains, which makes it easy.
One question remains:
How would I preset the database name in the nginx conf file? My guess was that the “location” section would do that, but attempts like
with or without a slash or a backslash in front of the database name failed as well. No problem to call my-sub.domain.de#my-database in the browser. Did anybody find a solution for this?