diff --git a/backend/.env b/backend/.env index 2ae2826..fe2bc93 100644 --- a/backend/.env +++ b/backend/.env @@ -1,3 +1,3 @@ FLASK_APP=app -FLASK_RUN_PORT=54321 +FLASK_RUN_PORT=5000 FLASK_DEBUG=True diff --git a/backend/app.py b/backend/app.py index 86cf907..9328cc7 100644 --- a/backend/app.py +++ b/backend/app.py @@ -4,7 +4,7 @@ from flask_cors import CORS # from werkzeug.security import generate_password_hash, check_password_hash -locale.setlocale(locale.LC_ALL, "cs_CZ.utf8") +# locale.setlocale(locale.LC_ALL, "cs_CZ.utf8") app = Flask(__name__) CORS(app) @@ -64,7 +64,6 @@ def get(self, nick, IP): # print(f"{nick}: Create at {self[nick].ctime}. Use at {self[nick].atime}.") return r - @app.route("/", methods=["GET"]) def index(): return send_from_directory(".", "index.html") diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..4b41ab1 --- /dev/null +++ b/default.conf @@ -0,0 +1,15 @@ + + +server { + server_name domena.cz + + location ~ /api { + #flask API + proxy_pass http://localhost:8080; + } + + location / { + root /frontend/public; + try_files $uri $uri/ /index.html; + } +} \ No newline at end of file diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue index 5136f56..b589b9a 100644 --- a/frontend/pages/index.vue +++ b/frontend/pages/index.vue @@ -51,6 +51,11 @@ table {
+ pending: {{ loadedData.pending }}
+ err: {{ loadedData.error }}
+
+