diff --git a/assets/config/nginx/nginx_SSL.conf b/assets/config/nginx/nginx_SSL.conf index 2e55cc1..a0323c0 100644 --- a/assets/config/nginx/nginx_SSL.conf +++ b/assets/config/nginx/nginx_SSL.conf @@ -26,8 +26,6 @@ server { add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; location / { - try_files $uri $uri/ =404; - root /var/www/html; - index index.html; + proxy_pass http://127.0.0.1:5000; } } diff --git a/lomes-app.py b/lomes-app.py index f642d63..cd30861 100644 --- a/lomes-app.py +++ b/lomes-app.py @@ -6,8 +6,7 @@ app = Flask(__name__) @app.route("/") def index(): - return "with Flask" - return render_template("/var/www/html/index.html") + return render_template("index.html") app.run(host="127.0.0.1", port=5000) \ No newline at end of file diff --git a/lomes-setup.sh b/lomes-setup.sh index 6bea6d3..894a8f1 100755 --- a/lomes-setup.sh +++ b/lomes-setup.sh @@ -179,7 +179,6 @@ done ###### NGINX MAINTENANCE & LANDING PAGE sudo rm -rf /var/www/html -sudo cp -R assets/html /var/www if ! [ "$(sudo nginx -t > /dev/null 2>&1)" ]; then ### NGINX CONF CHECK echo -e "\n ${LGN}Nginx configuration checks out...${CRS}" diff --git a/static/index.html b/static/index.html index f33378b..95b9dc4 100644 --- a/static/index.html +++ b/static/index.html @@ -5,7 +5,7 @@ LoMeS | Meshtastic - +
diff --git a/static/lndpg.html b/static/lndpg.html new file mode 100644 index 0000000..f33378b --- /dev/null +++ b/static/lndpg.html @@ -0,0 +1,29 @@ + + + + + + LoMeS | Meshtastic + + + + +
+
+ +

Welcome to LoMeS

+
+
+

A Local Meshtastic Server in development

+

If you see this site, means "LoMeS" development environment is running!

+

Thanks for collaborating and trying to make things mor real...

+
+ + +
+ + \ No newline at end of file diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..aa4f7b7 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,9 @@ + + + {% block title %} {% endblock %} + + + {% block content %} + {% endblock %} + + \ No newline at end of file