Reverse proxy for surveil API
This commit is contained in:
parent
7862fb5ae9
commit
ab9ddd68ee
4
Makefile
4
Makefile
@ -9,10 +9,10 @@ rebuild:
|
|||||||
sudo docker build --no-cache -t adg-fe .
|
sudo docker build --no-cache -t adg-fe .
|
||||||
|
|
||||||
interactive:
|
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:
|
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:
|
kill:
|
||||||
sudo docker kill adg-fe
|
sudo docker kill adg-fe
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<VirtualHost *:8080>
|
<VirtualHost *:8888>
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
|
|
||||||
# Servers to proxy the connection, or;
|
# Servers to proxy the connection, or;
|
||||||
@ -10,7 +10,7 @@
|
|||||||
ProxyPass /app http://localhost:8000/app
|
ProxyPass /app http://localhost:8000/app
|
||||||
ProxyPassReverse /app http://localhost:8000/app
|
ProxyPassReverse /app http://localhost:8000/app
|
||||||
|
|
||||||
ProxyPass / http://demo.kaji-project.org/
|
ProxyPass / http://surveil:8080/
|
||||||
ProxyPassReverse / http://demo.kaji-project.org/
|
ProxyPassReverse / http://surveil:8080/
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# have to change the VirtualHost statement in
|
# have to change the VirtualHost statement in
|
||||||
# /etc/apache2/sites-enabled/000-default.conf
|
# /etc/apache2/sites-enabled/000-default.conf
|
||||||
|
|
||||||
Listen 8080
|
Listen 8888
|
||||||
|
|
||||||
<IfModule ssl_module>
|
<IfModule ssl_module>
|
||||||
Listen 443
|
Listen 443
|
||||||
|
Loading…
x
Reference in New Issue
Block a user