I do appreciate your input, nick, though in my case, I often feel like you're assuming I understand more about this than I do! I had assumed that the port I was given was to be exposed to the outside world, but now I'm guessing it's more like this?
browser --[port 443]--> NGINX --[PROXYPORT]--> my_application (uvicorn ...)
If that is right, then PROXYPORT is just a locally accessible port, correct? I don't need it exposed to the outside world at all?
Then, I just need to figure out if your standard NGINX configuration settings will fit with those that I'm told I need (here). These are the ones that seem at issue.
First, I need to direct NGINX to the static files. I looked at the link you offered, but I don't see anything that seems appropriate. This is the setting I'm told I need:
location /static/ {
alias /path/to/etebase/static/; # Project's static files
}
Second, I'm told I need these proxy_* settings. Maybe these are already set?
location / {
proxy_pass http://etebase;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
Third, I'm being told that it's preferable to use a socket rather than a port, though perhaps I can do without this:
upstream etebase {
server unix:///tmp/etebase_server.sock; # for a file socket
# server 127.0.0.1:8001; # for a web port socket
}