skip to Main Content

Static files are not found (gunicorn) – Nginx

I know this question was already asked frequently. But the supposed solutions seem not to help me. Here is my Nginx definition for the static files location /static/ { alias /data/atsi_webapp/ATSi_WebApp/static; } Here my Django settings BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) STATIC_ROOT…

VIEW QUESTION

Second nginx auth_request timed out

I have the following nginx setup: location = /novnc-auth { internal; # calls the django view below proxy_pass http://127.0.0.1:8000/api/proxmox/novnc-connection-lookup/$cookie_novnc/; # set $pve $upstream_http_pve; # set $vmhhost $upstream_http_vmhhost; } location = /novnc/ { auth_request /novnc-auth; auth_request_set $vmhhost $upstream_http_vmhhost; auth_request_set $pve $upstream_http_pve;…

VIEW QUESTION

nginx grpc_pass works only on root

This works: server { listen 5005 http2; location / { grpc_pass grpc://my_app:5001; } default_type application/grpc; } this doesnt work: server { listen 5005 http2; location /test { grpc_pass grpc://my_app:5001; } default_type application/grpc; } I receive logs when I go to…

VIEW QUESTION

Nginx Match Image Filename Based On Part of URL?

For local development, I'm trying to serve static content out of a public directory. My images live in app/public/images, and my root is app/public. My images are looked up at /d/my_app_name/images/<image>.png. I'm matching the /d/my_app_name/images location, but trying to figure…

VIEW QUESTION
Back To Top
Search