Create and manage custom go/ links for any local network or enterprise.
- First, clone the repo:
git clone https://github.com/theak/go
- Run
cd go
- Run
docker build -t go -f Dockerfile .
to build the docker container - Run
docker run -it -p 80:9999 go
to make sure everything works, then ctrl+C to stop- This assumes you want to run on port
80
on the host machine. Change this if you want to run it on a different port. - Navigate to http://192.168.0.xxx/ to load the web interface (replace
192.168.0.xxx
with your server's IP). - Use http://192.168.0.xxx/settings to configure custom settings, such as your domain name if it's not
go/
.
- This assumes you want to run on port
- Run
docker run -d -p 80:9999 --restart unless-stopped go
to deploy
- Clone the repo:
git clone https://github.com/theak/go
- In a virtual env, run
pip install -r requirements.txt
- Run
python app.py init_db
to initialize the db - Run
FLASK_DEBUG=1 flask run --host=0.0.0.0 --port=9999
to start the local web server in debug mode with external connections (customize as needed)
- Edit your hosts file
- On Linux/Mac:
sudo nano /etc/hosts
- On Windows: edit
C:\Windows\System32\drivers\etc\hosts
as an administrator
- On Linux/Mac:
- Add the following line to it:
192.168.0.XXX go
- Replace
192.168.0.XXX
with the IP address of your server. - Replace
go
with the custom domain you want to use internally if you're using something else.
- Replace
- If you're using a custom DNS server like Pi-Hole, you only need to do this once and it will work across all devices on your network, including mobile phones.
ssh
into the Pi-Hole and add the same entry above to your/etc/hosts
file (you will needsudo
):192.168.0.XXX go
- Restart Pi-Hole DNS with
pihole restartdns