netsec-ethz / scionlab

SCIONLab user interface and administration
https://www.scionlab.org
Apache License 2.0
9 stars 15 forks source link

Change development server port to 8080 #310

Open juagargi opened 3 years ago

juagargi commented 3 years ago

Our development server is located at

SCIONLAB_SITE = 'http://localhost:8000'

(That variable is used when generating the call to the scionlab-config script).

Unfortunately this clashes with the Vagrantfile we deploy for user ASes, due to the port redirection:

config.vm.network "forwarded_port", guest: 8000, host: 8000, protocol: "tcp"

This situation forces us to edit the Vagrantfile to remove or edit that line.

Changing the setting to have the development server somewhere else would remove this small inconvenience.

juagargi commented 3 years ago

This is actually more complicated that I thought: there is no easy way to set the reverse port forwarding while provisioning the VM. This is unfortunate, because in development, we would like to connect to our coordinator running locally in our host machine, from the guest VM.

For future reference: