Is it possible to make this work behind nginx proxy? #79
Replies: 5 comments
-
Super easy! Here are the relevant components needed to make this run behind an nginx proxy... rollup.config.js
nginx config:
Note: The last part is for the websocket. Also, pay special attention to the host and port (0.0.0.0 and 5000 respectively). Lastly, keep in mind that rollup-plugin-livereload loads a module that listens on port 35729 for the changes (using a websocket) |
Beta Was this translation helpful? Give feedback.
-
Hello, is their a way to make to live reload laravel, e.g. my-app.test domain? |
Beta Was this translation helpful? Give feedback.
-
Not sure what you're asking. Can you provide more details? |
Beta Was this translation helpful? Give feedback.
-
@YannisMarios did this help you?
You could use the // ...
livereload({
watch: your_path,
clientUrl: 'http://localhost:35729/livereload.js?snipver=1'
}),
// ... My PR #72 adds an additional option, which makes this easier to use, i.e. you do not have to hard-code the absolute URL. |
Beta Was this translation helpful? Give feedback.
-
I'm converting this issue to a discussion, as it's more of a question than a bug or a feature request. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to make reload work behind nginx proxy. Is this possible?
right now my nginx config has:
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions