nginx setup and make

This commit is contained in:
ntr
2019-07-09 14:12:32 +10:00
parent 264d368351
commit fac62329e8
8 changed files with 49 additions and 19 deletions
@@ -1,3 +1,5 @@
error_log /var/log/nginx/mnml.nginx.log debug;
upstream mnml {
server 127.0.0.1:40000;
}
@@ -9,10 +11,9 @@ map $http_upgrade $connection_upgrade {
# DEV
server {
root /var/lib/mnml/public/;
index index.html;
location / {
root /var/lib/mnml/public/dist;
index index.html;
try_files $uri $uri/ =404;
}