Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #12932
Closed
Open
Issue created Dec 27, 2022 by Administrator@rootContributor

Support the dev server run behind proxy server like Nginx.

Created by: hurelhuyag

Is your proposal related to a problem?

Yes. I need to run the dev server behind Nginx. This way. I can simulate a production-like setup with a dev environment.

Describe the solution you'd like

Currently, When I open the app on the browser. The app tries to connect wss://my_local_domain:3000/ws when I run it behind the Nginx proxy server. I didn't provide port number 3000. It looks like somewhere hardcoded. The solution is to use a relative path to connect to the dev server. Then connect URL should be like this: wss://my_local_domain/ws because my nginx host URL is https://my_local_domain

Describe alternatives you've considered

I tried this). It should work. But not exactly fit what I'm looking for. For example, it doesn't support cookies. It provides me unknown proxy server. Additional unknown factor.

Additional context

I also create StackOverflow question

Assignee
Assign to
Time tracking