Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
allthingsclowd committed Sep 25, 2018
1 parent 260154a commit c35ec3e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ Vagrant.configure("2") do |config|
web01.vm.hostname = ENV['NGINX_NAME']
web01.vm.network "private_network", ip: ENV['NGINX_IP']
web01.vm.network "forwarded_port", guest: ENV['NGINX_GUEST_PORT'], host: ENV['NGINX_HOST_PORT']
web01.vm.provision "file", source: "webclient/wpc-fe/", destination: "/tmp/wpc-fe"
web01.vm.provision :shell, path: "scripts/install_webserver.sh"
end

Expand Down
8 changes: 8 additions & 0 deletions conf/wpc-fe.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
server {
listen 9091 default_server;

location / {
root /var/www/wpc-fe;
index index.html index.htm;
}
}
4 changes: 3 additions & 1 deletion scripts/install_webserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ EOF
echo 'Register nginx service with Consul Service Discovery Complete'
}

sudo mv /tmp/wpc-fe /var/www/
sudo mv /usr/local/bootstrap/webclient/wpc-fe /var/www/wpc-fe
sudo cp /usr/local/bootstrap/conf/wpc-fe.conf /etc/nginx/conf.d/wpc-fe.conf

# remove nginx default website
[ -f /etc/nginx/sites-enabled/default ] && sudo rm -f /etc/nginx/sites-enabled/default

Expand Down

0 comments on commit c35ec3e

Please sign in to comment.