-
Notifications
You must be signed in to change notification settings - Fork 932
Able to run on my personal computer but not on VPS #31
Comments
Can you open dev tools(in your browser on the page) and look in the console for any errors when clicking the enter button to go to the specified website you want to proxy. |
|
Service workers can only be registered when using https or on localhost for some reason not really sure how they work, but they do need https. So what you can do is if you don't have a domain I'd use freenom as they are a free domaon provider to an extent, and then point the nameservers to cloudflare, make an A record with the @ name and in the content field put the IP of your vps, and make sure the little cloudflare proxy icon is enabled, that should fix it. |
How would I set a specific port (8080) to the website name with Node.js though? |
You can use nginx which is a webserver. |
You pass the proxy to nginx, which then listens on port 80 and when visited sends requests to nodejs |
How would I set up Ultraviolet/Node.js with Nginx though? |
I've tried that before, but it only proxies the main |
Are you familiar with nginx? |
No, I only know a little. |
So in the config, the location would be / and then you'd put a proxy_pass in there |
I can assist you tomorrow some more. Sorry. |
Ok, thanks |
I have the same problem, I can run it on localhost, 127..0.01 but not my local ip 192.168.1.103, I tried to tweak index.mjs to use https but didn't work. |
The link to the documentation for proxy_pass is https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/ |
I was running this on my personal computer (MacBook) and it successfully runned and was able to search and visit websites, but when I deployed it on my VPS (Ubuntu 18.04), I couldn't search up things or visit websites using the proxy.
Expected Behavior
Able to search things and visit websites with the proxy.
Current Behavior
Does not redirect me to a proxy search page/website.
Possible Solution
I don't know
Steps to Reproduce
Context (Environment)
I'm trying to be able to use the proxy
The text was updated successfully, but these errors were encountered: