chore [P-261]: 1.1.0 тестирование
This commit is contained in:
1 parent
d8056b6c80
commit
257b7d85ba
12 files changed
+10
-238
No files matched your search
@@ -22,17 +22,18 @@ services:
|
||||
|
||||
backend:
|
||||
build:
|
||||
|
||||
context: .
|
||||
dockerfile: docker/dockerfiles/back_dev
|
||||
args:
|
||||
SOURCE_DIR: ./src/back
|
||||
PROJECT_DIR: .
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
build:
|
||||
context: .
|
||||
|
||||
args:
|
||||
SOURCE_DIR: ./src/back
|
||||
PROJECT_DIR: .
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-102
@@ -1,102 +0,0 @@
|
||||
anyio
|
||||
asgiref
|
||||
async-timeout
|
||||
attrs
|
||||
autobahn
|
||||
Automat
|
||||
backports.tarfile
|
||||
build==1.2.2.post1
|
||||
CacheControl
|
||||
certifi
|
||||
cffi
|
||||
channels
|
||||
channels-redis
|
||||
charset-normalizer
|
||||
cleo
|
||||
constantly
|
||||
crashtest
|
||||
cryptography
|
||||
daphne
|
||||
defusedxml
|
||||
distlib
|
||||
Django
|
||||
django-ckeditor
|
||||
django-ckeditor-5
|
||||
django-cors-headers
|
||||
django-filter
|
||||
django-grappelli
|
||||
django-js-asset
|
||||
django-templated-mail
|
||||
djangorestframework
|
||||
djangorestframework-simplejwt
|
||||
djoser
|
||||
drf-yasg
|
||||
dulwich
|
||||
et-xmlfile
|
||||
exceptiongroup
|
||||
fastjsonschema
|
||||
filelock
|
||||
findpython
|
||||
h11
|
||||
httpcore
|
||||
httpx
|
||||
hyperlink
|
||||
idna
|
||||
importlib_metadata
|
||||
incremental
|
||||
inflection
|
||||
installer
|
||||
jaraco.classes
|
||||
jaraco.context
|
||||
jaraco.functools
|
||||
jeepney
|
||||
keyring
|
||||
Markdown
|
||||
more-itertools
|
||||
msgpack
|
||||
mysqlclient
|
||||
numpy
|
||||
oauthlib
|
||||
openpyxl
|
||||
packaging
|
||||
pandas
|
||||
pbs-installer
|
||||
Pillow
|
||||
pkginfo
|
||||
platformdirs
|
||||
pyasn1
|
||||
pyasn1-modules
|
||||
pycparser
|
||||
pyOpenSSL
|
||||
pyproject_hooks
|
||||
python-dateutil
|
||||
python3-openid
|
||||
pytz
|
||||
PyYAML
|
||||
RapidFuzz
|
||||
redis
|
||||
requests
|
||||
requests-oauthlib
|
||||
requests-toolbelt
|
||||
SecretStorage
|
||||
service-identity
|
||||
shellingham
|
||||
six
|
||||
sniffio
|
||||
social-auth-app-django
|
||||
social-auth-core
|
||||
sqlparse
|
||||
tomli
|
||||
tomlkit
|
||||
trove-classifiers
|
||||
Twisted
|
||||
txaio
|
||||
typing_extensions
|
||||
tzdata
|
||||
uritemplate
|
||||
urllib3
|
||||
virtualenv
|
||||
XlsxWriter
|
||||
zipp
|
||||
zope.interface
|
||||
zstandard
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "front",
|
||||
"version": "1.0.2",
|
||||
"version": "1.1.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
Binary file not shown.
@@ -23,8 +23,8 @@ http {
|
||||
# Первый сервер
|
||||
server {
|
||||
|
||||
listen ${NGINX_EXTERNAL_PORT};
|
||||
server_name ${HOST_NAME}; # Замените на ваше доменное имя, если необходимо
|
||||
listen 80;
|
||||
# server_name ${HOST_NAME}; # Замените на ваше доменное имя, если необходимо
|
||||
proxy_read_timeout 1000;
|
||||
|
||||
# Указываем путь к статическим файлам
|
||||
|
||||
Binary file not shown.
@@ -1,48 +0,0 @@
|
||||
[Unit]
|
||||
Description=gunicorn daemon
|
||||
Requires=gunicorn.socket
|
||||
After=network.target
|
||||
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
#WorkingDirectory=/var/www/proj/DQM/dqmback
|
||||
WorkingDirectory=/var/www/PORTAL_COD2/src
|
||||
# --timeout NNN - set timeout for gunicorn to NNN sec, default - 30sec
|
||||
# --access-logfile FILENAME - log all requests to file FILENAMEA
|
||||
# --error-logfile FILENAME - set error log file to FILENAME
|
||||
# Формат лог-файла кастомизируется, детали - в документации
|
||||
# --capture-output - redirect stdout/stderr to error-logfile
|
||||
# --log-syslog - send Gunicorn logs to Syslog
|
||||
# -log-syslog-prefix SYSLOG_PREFIX - set Syslog Prefix
|
||||
# --log-syslog-facility SYSLOG_FACILITY - set Syslog Facility, default - user(?-да, так в документации)
|
||||
# правильно пользовать local1..local7
|
||||
# --log-level=debug - set debug logging
|
||||
# levels: debug info warning error critical
|
||||
# details: https://docs.gunicorn.org/en/stable/settings.html#logging
|
||||
# --workers N - set number of workers to N
|
||||
# --bind unix:FILENAME - bind to unix socket with name FILENAME
|
||||
# --bind unix:/run/gunicorn.sock
|
||||
# --bind=127.0.0.1:9000 - bind to TCP socket 127.0.0.1:9000
|
||||
# default listen socket: 127.0.0.1:8000
|
||||
# --pid=PIDFILE - user file PIDFILE as PID File
|
||||
#
|
||||
# Howto debug NGinx+Gunicorn: https://mattsegal.dev/django-gunicorn-nginx-logging.html
|
||||
#
|
||||
#ExecStart=/usr/bin/gunicorn --workers 3 --bind unix:/var/www/application.sock wsgi:app
|
||||
|
||||
|
||||
#ExecStart=/var/www/sup/env/bin/uvicorn \
|
||||
ExecStart=/var/www/PORTAL_COD2/env/bin/gunicorn portal.wsgi:application --bind 10.252.44.60:9965 --workers 4 --error-logfile /var/log/portal/portal.error.log
|
||||
|
||||
|
||||
|
||||
# --access-logfile /var/log/gun-ukt/gun-ukt.access.log \
|
||||
# --workers 3 \
|
||||
# --timeout 600 \
|
||||
# --bind unix:/run/gunicorn.sock \
|
||||
# --limit-request-line 0 \
|
||||
# dqmback.wsgi:application
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,14 +0,0 @@
|
||||
[Unit]
|
||||
Description=WebSocket Daphne Service for PORTAL_COD2-t
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
#Group = nginx
|
||||
WorkingDirectory=/var/www/PORTAL_COD2/src
|
||||
ExecStart=/var/www/PORTAL_COD2/env/bin/python /var/www/PORTAL_COD2/env/bin/daphne -p 9966 portal.asgi:application
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,65 +0,0 @@
|
||||
|
||||
|
||||
# Daphne, Django channels backend
|
||||
upstream portal-backend {
|
||||
server 127.0.0.1:9966;
|
||||
}
|
||||
|
||||
|
||||
# PORTAL Test server
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
|
||||
server_name portal-t portal-t.cod2.regions.tax.nalog.ru;
|
||||
|
||||
send_timeout 600;
|
||||
proxy_connect_timeout 600;
|
||||
proxy_send_timeout 600;
|
||||
proxy_read_timeout 600;
|
||||
|
||||
root /var/www/PORTAL_COD2/src/front/dist/;
|
||||
include /etc/nginx/mime.types;
|
||||
access_log /var/log/nginx/portal.access.log;
|
||||
error_log /var/log/nginx/portal.error.log;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.html;
|
||||
}
|
||||
|
||||
|
||||
|
||||
location /static {
|
||||
autoindex on;
|
||||
alias /var/www/PORTAL_COD2/src/static/;
|
||||
}
|
||||
|
||||
location /media {
|
||||
alias /var/www/PORTAL_COD2/src/media;
|
||||
|
||||
}
|
||||
|
||||
location ^~ /api/ {
|
||||
client_max_body_size 100m;
|
||||
include proxy_params;
|
||||
proxy_pass http://portal-backend;
|
||||
}
|
||||
|
||||
location ^~ /admin {
|
||||
include proxy_params;
|
||||
proxy_pass http://portal-backend;
|
||||
}
|
||||
|
||||
|
||||
location /ws/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_redirect off;
|
||||
proxy_pass http://portal-backend;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user