Commit a328d214 authored by Aral Balkan's avatar Aral Balkan
Browse files

Fixed the path of the letsencrypt.sh script. Now removing the default nginx...

Fixed the path of the letsencrypt.sh script. Now removing the default nginx site. Added root nginx route.
parent 6a543e35
......@@ -208,7 +208,7 @@ echo " * Writing out the server domains for the letsencrypt script…"
sudo bash -c "echo \"${serverNames}\" > /etc/letsencrypt/domains.txt"
echo " * Copying the letsencrypt.sh configuration file template…"
sudo cp ./config.sh.template /etc/letsencrypt/config.sh
sudo cp ./letsencrypt/config.sh.template /etc/letsencrypt/config.sh
sudo chmod +x /etc/letsencrypt/config.sh
echo " * Carrying out template substituions in letsencrypt.sh configuration file…"
......@@ -218,6 +218,9 @@ sudo sed -i "s/{EMAIL}/${gitAccountEmail}/g" /etc/letsencrypt/config.sh
echo " * Stopping nginx service…"
sudo service nginx stop
echo " * Disabling the default nginx configuration…"
sudo rm /etc/nginx/sites-enabled/default
echo " * Enabling the HTTP endpoint…"
sudo ln -s /etc/nginx/sites-available/http.conf /etc/nginx/sites-enabled/http.conf
......
......@@ -15,6 +15,14 @@ server {
# Make site accessible from http://localhost/
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
location = /apple-app-site-association {
# The Apple App Site Association file must be served with the
# application/pkcs7-mime type.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment