Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change app url #16

Open
han-so1omon opened this issue Sep 10, 2018 · 4 comments
Open

change app url #16

han-so1omon opened this issue Sep 10, 2018 · 4 comments

Comments

@han-so1omon
Copy link

I tried changing nginx.conf piui server to 192.168.4.1:8080, then copying the file to /etc/nginx and restarting nginx thru init.d. I also tried changing piui/init.pyPiUi class port to the same url and then rebuilding/reinstalling thru setup.py. This only works for files in the basepiui` directory, but still no luck for files that are in other directories. I also tried rebooting after all of this and still nothing. Any words of wisdom or ways to pass in url as an argument?

@dps
Copy link
Owner

dps commented Sep 10, 2018

What are you actually trying to achieve - it's not super clear from your question.

@han-so1omon
Copy link
Author

The code by default starts the piui server at 0.0.0.0:9999. I tried accessing the piui server at this address, but it only works on the local device. http://piui doesn't work over internet either.

I would like to access the server over internet, so I change the URL to another address (192.168.4.1, which is router address) via the files mentioned above.

I notice that there is a tool called cherrypy that can take the server and port as arguments. Maybe it would work to pass those as keywords arguments to PiUi class?

Let me know if there is an easy solution.

@han-so1omon
Copy link
Author

Simply: How does one change the piui server url from 0.0.0.0:9999?

@Neophytez
Copy link

Local device - 0.0.0.0:9999
Device on same network - :9999 (example 192.168.1.100:9999)
For accessing from over the internet, you must open port 9999 for ip address, where RPI is hosted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants