L2 Cache

Behold the power of |!

User Tools

Site Tools


projects:solaris:goto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
projects:solaris:goto [2013/07/21 23:32]
sjorge created
projects:solaris:goto [2015/05/23 16:33] (current)
sjorge [GoTo]
Line 1: Line 1:
 ====== GoTo ====== ====== GoTo ======
 +<​note>​Packages are no longer provided, source remains available here:\\ [[https://​github.com/​sjorge/​omnios-build-blackdot]]</​note>​
 +
 GoTo is a simple service (for Solaris) written in python using the [[http://​bottlepy.org|bottle]] module. GoTo is a simple service (for Solaris) written in python using the [[http://​bottlepy.org|bottle]] module.
  
-It provides a simple redirection service. (Short) URI's are mapped to URL's. This allows for sharing and consolidating of a lot of internal tools and webapps in one place.+It provides a simple redirection service. (Short) URI's are mapped to URL's. This allows for sharing and consolidating of a lot of internal tools and webapps in one place. ​
  
 +The idea came from tinyurl.com,​ but I did want some more meaning full URL's instead of gibberish.
 ===== How it works ===== ===== How it works =====
 +A zone or solaris host will run the GoTo Service (network/​http/​goto). It will then serv an index of all configured links from ''/​etc/​goto.map''​ or it will serv a redirection page when visiting one of the links.
 +
 +In this little section my zone has is called //​lynx.lab.acheron.be//​ with an IP of 10.123.0.5.\\
 +Typing http://​lynx.lab.acheron.be/​mail is still a bit long and so is http://​lynx.lab/​mail so I also configured a DNS cname for this host //goto//.
 +
 +For some reason shorter names like //go// or //g2// don't work well. Safari, Chrome and Firefox turn them into http://​www.go.com/​ or http://​www.g2.com/​.
 +
 +Typing http://​goto/​mail will now redirectio to whatever was configure for the /mail, in my case http://​mail.google.com/​. You can omit the first bit and just type //​goto/​mail//​.
 +
 +Pretty simple isn't it. Ofcourse you can redirect anything to anything, you could even redirect //​goto/​vnc-cepheus//​ to //​[[vnc://​cepheus]]//,​ ofcource your browser/os would need to have a protocol handler configured for vnc.
 +
 +===== Installation =====
 +The installation is quite simple if you run OmniOS.
 +
 +Simple add the omnios.blackdot.be repository and install the goto package.\\
 +You then edit goto.map and enable the service. Optionally create/edit goto.hostname wich will hold a alternative IP or IP:PORT to listen on. It defaults to 0.0.0.0:80.
 +
 +<​konsole>​
 +# pfexec pkg set-publisher -g http://​omnios.blackdot.be -g omnios.blackdot.be
 +# pfexec pkg refresh --full
 +# pfexec pkg install obd/​server/​web/​goto
 +# pfexec vi /​opt/​obd/​etc/​goto.map
 +# pfexec svcadm enable goto
 +# pfexec svcs -x (to check for errors)
 +</​konsole>​
 +
 +Currently there are no manual installation instructions,​ if there is interest in this I will write them up when I have more time.
 +For any questions you can [[https://​blackdot.be/​contact/​|contact me]] through my website.
  
 +==== goto.map format ====
 +<​code>​
 +## goto.map
 +# format:
 +# uri: URL
 +/mail: https://​mail.google.com/​
 +/m: https://​mail.google.com/​
 +/g: https://​www.google.com/​ncr
 +</​code>​
projects/solaris/goto.1374442379.txt.gz · Last modified: 2014/10/09 22:02 (external edit)