Would it not make more sense for web pages to be served from the webserver part of PlexConnect, rather than run an entirely new one?
This would definitely be a great new feature, I was hoping you guys would come across this ;)
It would definitely be a better way to run a web-management option on any device anywhere if it was built into the web-server portion of PlexConnect :)
Not so much that we would need to access the settings.cfg file but the ability to get plexconnect updates without visiting the command line or stopping, starting and restarting plexconnect easily without having to remote in to the PlexConnect host to configure it. The only issue I see with running cgi in the python code for a web-based updating option on the error response screen would be updating the code or any other function since once you terminate plexconnect.py it would kill webserver.py. The only options that I see is creating an outside cgi that would handle these functions or a front-end cgi that runs prior to PlexConnect.py or a way to pausing the code somehow.
Here is an example:
Say I have a PlexConnect host at my parents house. I need to update it to grab some new code you guys released. The only way to manage it is by using some remote program to login to the host in order to shut down PlexConnect and update the code. If there was a cgi I would easily just type in a wan IP address for the host to have it shutdown PlexConnect update the code start PlexConnect just by viewing the cgi web configuration site which would be a lot easier.
I have added existing cert checking into the code just grab from the OP. OpenConnect will now skip cert generation if existing certs are present (even though the app asks you if you have installed certs yet)
I messed a little with cgi and came up with this. It looks promising but I still cant get the scripts to run as root no matter what I try via cgi in apache2 on OSX. Any insight on how this can be done on OSX would be greatly appreciated. I have messed with sudoers extensively with no success so I think the culprit may be apache2 but im not sure. Looks like OSX keeps prevents the setuid on bash scripts from being able to run as root when there is a #! (shebang) in the script due to security reasons im sure. I've exhausted about every combination on chown & chmod to allow the script to function. Is there anyone that has experience with running scripts with cgi & apache2? This can open the door to a PlexConnect terminal free web-managed based environment if it can be solved.
UPDATE! I fixed it, I found the proper user that was missing.
Just install the bash plist from the OpenConnect App or WebConnect using a web-browser. Once installed you can update using the update button if using OpenConnect or WebConnect.