Merge pull request #52 from theta42/feature-restyconfig

Feature openresty Config
This commit is contained in:
2023-08-21 13:12:08 -04:00
committed by GitHub
3 changed files with 17 additions and 4 deletions
+2 -1
View File
@@ -86,4 +86,5 @@ ops/cookbooks/vendor
secrets.json
secrets.js
openresty/
openresty/**
!openresty/README.md
Vendored
+6 -3
View File
@@ -132,8 +132,11 @@ Vagrant.configure("2") do |config|
end
config.vm.provision "shell", inline: <<~SHELL
# cp -a /etc/openresty/. /vagrant/openresty
# rm -rf /etc/openresty
# ln -s /vagrant/openresty /etc/openresty
cd /vagrant/openresty
shopt -s extglob
rm -frv !("README.md")
cp -a "/usr/local/openresty/nginx/conf/." /vagrant/openresty
rm -rf /usr/local/openresty/nginx/conf/
ln -s /vagrant/openresty/ /usr/local/openresty/nginx/conf
SHELL
end
+9
View File
@@ -0,0 +1,9 @@
The folder will hold a link to the openresty conf file. Nothing in here will be
tracked, and edits are only valid on you local VM. The contents of this folder
is also reset during each provision run. Be mind full of that when making
changes here.
To apply any changes made in this folder, run the following command from outside
the VM:
`vagrant ssh -c "sudo service openresty restart"`