API PROXY WITH CUSTOM DOMAIN Create subdomain[1]. Create new server block[2]: Terminal: # /etc/nginx/sites-available/deno File: /etc/nginx/sites-available/deno Content: server{ listen 80; server_name api.morado.dev; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_pass http://127.0.0.1:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } } Nginx can read lua[3]; to write and api or intercept headers. Restart services: Terminal: # systemctl restart nginx [1]https://docs.digitalocean.com/products/networking/dns/how-to/add-subdomain/ [2]https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/ [3]https://www.nginx.com/blog/using-nginx-intelligent-proxy-web-server/