diff --git a/script/install/ubuntu1604.sh b/script/install/ubuntu1604.sh index eb48b80..715df84 100644 --- a/script/install/ubuntu1604.sh +++ b/script/install/ubuntu1604.sh @@ -44,14 +44,6 @@ rabbitmqctl add_vhost /postal rabbitmqctl add_user postal p0stalpassw0rd rabbitmqctl set_permissions -p /postal postal ".*" ".*" ".*" -# -# nginx -# -cp /opt/postal/app/resource/nginx.cfg /etc/nginx/sites-available/default -mkdir /etc/nginx/ssl/ -openssl req -x509 -newkey rsa:4096 -keyout /etc/nginx/ssl/postal.key -out /etc/nginx/ssl/postal.crt -days 365 -nodes -subj "/C=GB/ST=Example/L=Example/O=Example/CN=example.com" -service nginx reload - # # User # @@ -67,6 +59,14 @@ postal initialize-config postal initialize postal start +# +# nginx +# +cp /opt/postal/app/resource/nginx.cfg /etc/nginx/sites-available/default +mkdir /etc/nginx/ssl/ +openssl req -x509 -newkey rsa:4096 -keyout /etc/nginx/ssl/postal.key -out /etc/nginx/ssl/postal.crt -days 365 -nodes -subj "/C=GB/ST=Example/L=Example/O=Example/CN=example.com" +service nginx reload + # # All done #