Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/fogbow/fogbow-manager.git
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
abmargb committed May 20, 2015
2 parents ebf6c14 + 72e324d commit 3d6e178
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/lvl-user-data.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#!/bin/sh
LVL_REMOTE_PORT=$(curl -X POST #TOKEN_HOST#:#TOKEN_HOST_HTTP_PORT#/token/#TOKEN_ID#-lvl)
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -N -f -R 0.0.0.0:$LVL_REMOTE_PORT:localhost:80 #TOKEN_ID#-lvl@#TOKEN_HOST# -p #TOKEN_HOST_SSH_PORT#
sudo sed -i ':a;N;$!ba;s/#\(location \/RequestDenied {\)\n\s\+#\([^\n]\+\)\n\s\+#/\1\n\2\n/g' /etc/nginx/sites-enabled/default
sudo sed -i s/lvl\.i3m\.upv\.es/#TOKEN_HOST#:$LVL_REMOTE_PORT/g /opt/lvl/htdocs/js/apps/config/marionette/configuration.js
sudo sed -i 's/waitSeconds : 7/waitSeconds : 30/g' /opt/lvl/htdocs/js/requirejs_main.js
sudo service nginx restart
create-fogbow-tunnel http 80
sed -i 's/include \/etc\/nginx\/naxsi//g' /etc/nginx/sites-enabled/default
service nginx restart

0 comments on commit 3d6e178

Please sign in to comment.