Merge server state with origin/main (keep origin version)

This commit is contained in:
root
2026-02-12 16:05:07 +00:00
15 changed files with 28 additions and 9 deletions

11
.dockerignore Normal file
View File

@@ -0,0 +1,11 @@
.venv
__pycache__
*.pyc
*.pyo
*.pyd
*.db-shm
*.db-wal
.git
.gitignore
Dockerfile*
docker-compose*.yml

2
.env.example Normal file
View File

@@ -0,0 +1,2 @@
# Copy to .env and set your own value
SECRET_KEY=replace-with-a-long-random-string

View File

@@ -14,4 +14,4 @@ RUN mkdir -p /app/data /app/static/img
EXPOSE 4545
CMD ["gunicorn", "-c", "gunicorn_conf.py", "app:app"]
CMD ["gunicorn", "-c", "gunicorn_conf.py", "app:app"]

Binary file not shown.

2
app.py
View File

@@ -252,4 +252,4 @@ def health():
if __name__ == "__main__":
init_db()
app.run(debug=True)
app.run(debug=True)

BIN
data/infra.db Normal file

Binary file not shown.

2
data/leads.csv Normal file
View File

@@ -0,0 +1,2 @@
created_at,name,company,phone,email,city,computers,message
2026-02-12T16:33:08,Иван,ООО Тест,123,,,10,
1 created_at name company phone email city computers message
2 2026-02-12T16:33:08 Иван ООО Тест 123 10

View File

@@ -17,4 +17,4 @@ services:
interval: 20s
timeout: 5s
retries: 5
start_period: 20s
start_period: 20s

View File

@@ -1,7 +1,7 @@
import multiprocessing
bind = "0.0.0.0:4545"
workers = 4
workers = max(4, multiprocessing.cpu_count() * 2)
threads = 4
timeout = 60
graceful_timeout = 30

View File

@@ -1,2 +1,2 @@
Flask==3.1.0
gunicorn==23.0.0
gunicorn==23.0.0

4
static/img/README.txt Normal file
View File

@@ -0,0 +1,4 @@
Положите файл логотипа сюда:
static/img/infrait-logo.png
Текущий шаблон уже подключен к этому пути.

View File

@@ -20,4 +20,4 @@
item.style.transition = `opacity .45s ease ${index * 0.03}s, transform .45s ease ${index * 0.03}s`;
observer.observe(item);
});
})();
})();

View File

@@ -74,4 +74,4 @@
</div>
</main>
</body>
</html>
</html>

View File

@@ -34,4 +34,4 @@
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
{% block scripts %}{% endblock %}
</body>
</html>
</html>

View File

@@ -336,4 +336,4 @@
</div>
</div>
</footer>
{% endblock %}
{% endblock %}