Reverse proxy for surveil API

This commit is contained in:
Frédéric Vachon 2015-04-20 14:28:51 -04:00
parent 7862fb5ae9
commit ab9ddd68ee
3 changed files with 6 additions and 6 deletions

View File

@ -9,10 +9,10 @@ rebuild:
sudo docker build --no-cache -t adg-fe .
interactive:
sudo docker run -p 8080:8080 -v ${PWD}:/opt/adagios-frontend -i -t --name adg-fe adg-fe bash
sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil -v ${PWD}:/opt/adagios-frontend -i -t --name adg-fe adg-fe bash
daemon:
sudo docker run -p 8080:8080 -v ${PWD}:/opt/adagios-frontend -d -t --name adg-fe adg-fe
sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil -v ${PWD}:/opt/adagios-frontend -d -t --name adg-fe adg-fe
kill:
sudo docker kill adg-fe

View File

@ -1,4 +1,4 @@
<VirtualHost *:8080>
<VirtualHost *:8888>
ProxyPreserveHost On
# Servers to proxy the connection, or;
@ -10,7 +10,7 @@
ProxyPass /app http://localhost:8000/app
ProxyPassReverse /app http://localhost:8000/app
ProxyPass / http://demo.kaji-project.org/
ProxyPassReverse / http://demo.kaji-project.org/
ProxyPass / http://surveil:8080/
ProxyPassReverse / http://surveil:8080/
</VirtualHost>

View File

@ -2,7 +2,7 @@
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 8080
Listen 8888
<IfModule ssl_module>
Listen 443