I have this nginx config, which works fine for my remix app itself. However, live reload / dev server seems broken:
events {}
http {
server {
listen 80;
server_name api.myapp.test;
location / {
proxy_pass http://host.docker.internal:3330;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}
I've tried to set REMIX_DEV_ORIGIN (or origin in <LiveReload/>) to the same http://api.myapp.test, but that gives different errors (cannot find the /ping and /socket routes).
Does anyone have any pointers here?