How to correctly configure remx url and socket ports? #2688
Unanswered
laurencefass
asked this question in
Q&A
Replies: 2 comments
-
I also tried
which resulted in
so remix is not picking up any of the PORTs i specify. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I raised this as an issue and it was converted to a discussion but still no way to set ports, so i think its an issue.... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What version of Remix are you using?
1.3.4
Steps to Reproduce
Ive installed 1.3.4 using npx command and indie install option. I cant find the correct way to configure URL and socket ports.
Im running through a proxy so Ive changed the main port and the devserver socket port to the same value specified in my proxy config. I dont know if this is correct its just what Ive picked up from quick google of relevant keywords but cant find any definitive formal documentation for recoconfiguring the port. Either way this doesnt work....
(I want URL and socket to run through port 3301 as the only port exposed through my nginx/docker config. This just works post-install with both CRA and NextJS).
remix.config.js
.env
results of running in dev mode
FYI my nginx config:
Output accessing URL: https://remix1.syntapse.co.uk/
browser console log:
Expected Behavior
Given my port configuration (though not sure if its correct) I was expecting dev app to run on port 3301 not 33455.
Also expecting a Remix default web page, not "upgrade required" message.
It would be great to see some official document for condiguration through a proxy.
Sorry to mention "NextJS" here but this just worked in NextJS... i.e. I set the port in package.json (different ports for dev and prod) and it all just works. There is no specific dev port websocket configuration nor nginx port configuration required.
It would be great to see first class support for proxied websites in the documentation.
Actual Behavior
See above. Browser displays "upgrade required" message.
Beta Was this translation helpful? Give feedback.
All reactions