I’m trying to use flycast to try to proxy all my apps into one domain. This is my nginx conf:
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
# prevent css, js files sent as text/plain objects
include /etc/nginx/mime.types;
server {
listen 443;
listen [::]:443;
client_max_body_size 10M;
location / {
proxy_pass https://frontend.fly.dev/;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Host $http_host;
proxy_ssl_server_name on;
}
location /api {
proxy_set_header X-Forwarded-Host $http_host;
proxy_pass http://backend.flycast:8000;
}
}
}
When i run the nginx server I’m getting this error:
nginx: [emerg] host not found in upstream "backend.flycast" in /etc/nginx/nginx.conf:31