2022-02-23 13:48:21 +01:00
|
|
|
Vagrant.configure("2") do |config|
|
2022-02-27 22:35:36 +01:00
|
|
|
config.vm.box = "ubuntu/jammy64"
|
2022-02-23 13:48:21 +01:00
|
|
|
config.vm.synced_folder ".", "/vagrant"
|
|
|
|
config.vm.network(:forwarded_port, guest: 80, host: 8888)
|
|
|
|
|
|
|
|
config.vm.provision :shell, inline: <<-SHELL
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install nginx
|
|
|
|
|
|
|
|
echo "Starting nginx..."
|
2022-02-27 22:36:18 +01:00
|
|
|
sudo ln -s /vagrant/www /var/www/html/map
|
2022-02-23 13:48:21 +01:00
|
|
|
sudo cp /vagrant/www/index.html.en /vagrant/www/index.html
|
|
|
|
sudo useradd -s /bin/false nginx
|
|
|
|
sudo service nginx restart
|
|
|
|
SHELL
|
|
|
|
end
|