skip to Main Content

Starlette's url_for doesn't create links with https scheme behind Nginx (via uvicorn)

I've tried everything: @Starlette: routes = [ Mount("/static/", StaticFiles(directory=parent+fs+"decoration"+fs+"static"), name="static"), Route(....), Route(....), ] @Uvicorn: --forwarded-allow-ips=domain.com --proxy-headers @url_for: _external=True _scheme="https" @nginx: proxy_set_header Subdomain $subdomain; proxy_set_header Host $http_host; proxy_pass http://localhost:7000/; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;…

VIEW QUESTION

Generate wildcard certificate on Kubernetes cluster with DigitalOcean for my Nginx-Ingress

I followed this DigitalOcean guide https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes, and I came across something quite strange. When in the hostnames I set a wildcard, then letsencrypt fails in issuing a new certificate. While when I only set defined sub-domains, then it works perfectly.…

VIEW QUESTION

AWS ELB keeps returning 404 Health checks failed with these codes: [404] – Nginx

I'm serving my node js application with pm2. nginx.conf file is user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events { worker_connections 1024; } http { log_format main '$remote_addr - $remote_user [$time_local]…

VIEW QUESTION
Back To Top
Search