uwsgi-file
[uwsgi] # Service port number, no IP value is set here, the default is the IP address of the loading server #http = :5000 socket=:8000 # flask project address chdir = /pyprogram/electric # wsgi file /home/flask_project/mange.py #module = app:app wsgi-file=/pyprogram/electric/electric/wsgi.py # number of processes processes = 3 # main process master = true # Each process has 10 threads threads = 10 # background start log output path daemonize = /pyprogram/electric/logs/uwsgi.log # Save the process ID of the main process pidfile = /pyprogram/electric/uwsgi.pid # Split the log file with a fixed size #log-maxsize = 1000 # The root directory of the virtual environment home = /virtual/python38 # start request log disable-logging = true # set interrupt time harakiri = 60 # lazy loading buffer-size=65536 lazy = true lazy-apps = true vacuum=True
nginx.conf
worker_processes 4; events {<!-- --> worker_connections 1024; } http {<!-- --> include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; log_format main '$remote_addr - $remote_user [$time_local] "$request"' '$status $body_bytes_sent "$http_referer"' '"$http_user_agent" "$http_x_forwarded_for"'; upstream django{<!-- --> server0.0.0.0:8000; } server {<!-- --> # Listen on port 80 listen 80; charset utf-8; client_max_body_size 75M; # Listening address, write ip or domain name server_name 127.0.0.1; location / {<!-- --> root html; index index.html index.htm; #add_header Access-Control-Allow-Origin *; try_files $uri $uri/ /index.html; } } server {<!-- --> # Listen on port 80 listen 5000; charset utf-8; client_max_body_size 75M; server_name 127.0.0.1; location / {<!-- --> include uwsgi_params; uwsgi_pass django; } } }
electric catalog
electric/ ├── app │ ├── admin.py │ ├── apps.py │ ├── __init__.py │ ├── migrations │ │ ├── 0001_initial.py │ │ ├── 0002_auto_20230705_1239.py │ │ ├── __init__.py │ │ └── __pycache__ │ │ ├── 0001_initial.cpython-38.pyc │ │ ├── 0002_auto_20230705_1239.cpython-38.pyc │ │ └── __init__.cpython-38.pyc │ ├── models.py │ ├── MySQL.py │ ├── __pycache__ │ │ ├── admin.cpython-38.pyc │ │ ├── __init__.cpython-38.pyc │ │ ├── models.cpython-38.pyc │ │ ├── MySQL.cpython-38.pyc │ │ └── views.cpython-38.pyc │ ├── tests.py │ └── views.py ├── collectstatic │ ├── admin │ │ ├── css │ │ │ ├── autocomplete.css │ │ │ ├── base.css │ │ │ ├── changelists.css │ │ │ ├── dark_mode.css │ │ │ ├── dashboard.css │ │ │ ├── forms.css │ │ │ ├── login.css │ │ │ ├── nav_sidebar.css │ │ │ ├── responsive.css │ │ │ ├── responsive_rtl.css │ │ │ ├── rtl.css │ │ │ ├── vendor │ │ │ │ └── select2 │ │ │ │ ├── LICENSE-SELECT2.md │ │ │ │ ├── select2.css │ │ │ │ └── select2.min.css │ │ │ └── widgets.css │ │ ├── img │ │ │ ├── calendar-icons.svg │ │ │ ├── gis │ │ │ │ ├── move_vertex_off.svg │ │ │ │ └── move_vertex_on.svg │ │ │ ├── icon-addlink.svg │ │ │ ├── icon-alert.svg │ │ │ ├── icon-calendar.svg │ │ │ ├── icon-changelink.svg │ │ │ ├── icon-clock.svg │ │ │ ├── icon-deletelink.svg │ │ │ ├── icon-no.svg │ │ │ ├── icon-unknown-alt.svg │ │ │ ├── icon-unknown.svg │ │ │ ├── icon-viewlink.svg │ │ │ ├── icon-yes.svg │ │ │ ├── inline-delete.svg │ │ │ ├── LICENSE │ │ │ ├── README.txt │ │ │ ├── search.svg │ │ │ ├── selector-icons.svg │ │ │ ├── sorting-icons.svg │ │ │ ├── tooltag-add.svg │ │ │ └── tooltag-arrowright.svg │ │ └── js │ │ ├── actions.js │ │ ├── admin │ │ │ ├── DateTimeShortcuts.js │ │ │ └── RelatedObjectLookups.js │ │ ├── autocomplete.js │ │ ├── calendar.js │ │ ├── cancel.js │ │ ├── change_form.js │ │ ├── collapse.js │ │ ├── core.js │ │ ├── filters.js │ │ ├── inlines.js │ │ ├── jquery.init.js │ │ ├── nav_sidebar.js │ │ ├── popup_response.js │ │ ├── prepopulate_init.js │ │ ├── prepopulate.js │ │ ├── SelectBox.js │ │ ├── SelectFilter2.js │ │ ├── theme.js │ │ ├── urlify.js │ │ └── vendor │ │ ├── jquery │ │ │ ├── jquery.js │ │ │ ├── jquery.min.js │ │ │ └── LICENSE.txt │ │ ├── select2 │ │ │ ├── i18n │ │ │ │ ├── af.js │ │ │ │ ├── ar.js │ │ │ │ ├── az.js │ │ │ │ ├── bg.js │ │ │ │ ├── bn.js │ │ │ │ ├── bs.js │ │ │ │ ├── ca.js │ │ │ │ ├── cs.js │ │ │ │ ├── da.js │ │ │ │ ├── de.js │ │ │ │ ├── dsb.js │ │ │ │ ├── el.js │ │ │ │ ├── en.js │ │ │ │ ├── es.js │ │ │ │ ├── et.js │ │ │ │ ├── eu.js │ │ │ │ ├── fa.js │ │ │ │ ├── fi.js │ │ │ │ ├── fr.js │ │ │ │ ├── gl.js │ │ │ │ ├── he.js │ │ │ │ ├── hi.js │ │ │ │ ├── hr.js │ │ │ │ ├── hsb.js │ │ │ │ ├── hu.js │ │ │ │ ├── hy.js │ │ │ │ ├── id.js │ │ │ │ ├── is.js │ │ │ │ ├── it.js │ │ │ │ ├── ja.js │ │ │ │ ├── ka.js │ │ │ │ ├── km.js │ │ │ │ ├── ko.js │ │ │ │ ├── lt.js │ │ │ │ ├── lv.js │ │ │ │ ├── mk.js │ │ │ │ ├── ms.js │ │ │ │ ├── nb.js │ │ │ │ ├── ne.js │ │ │ │ ├── nl.js │ │ │ │ ├── pl.js │ │ │ │ ├── ps.js │ │ │ │ ├── pt-BR.js │ │ │ │ ├── pt.js │ │ │ │ ├── ro.js │ │ │ │ ├── ru.js │ │ │ │ ├── sk.js │ │ │ │ ├── sl.js │ │ │ │ ├── sq.js │ │ │ │ ├── sr-Cyrl.js │ │ │ │ ├── sr.js │ │ │ │ ├── sv.js │ │ │ │ ├── th.js │ │ │ │ ├── tk.js │ │ │ │ ├── tr.js │ │ │ │ ├── uk.js │ │ │ │ ├── vi.js │ │ │ │ ├── zh-CN.js │ │ │ │ └── zh-TW.js │ │ │ ├── LICENSE.md │ │ │ ├── select2.full.js │ │ │ └── select2.full.min.js │ │ └── xregexp │ │ ├── LICENSE.txt │ │ ├── xregexp.js │ │ └── xregexp.min.js │ ├── jquery.min.js │ └── loading.gif ├── electric │ ├── __init__.py │ ├── __pycache__ │ │ ├── __init__.cpython-38.pyc │ │ ├── settings.cpython-38.pyc │ │ ├── urls.cpython-38.pyc │ │ └── wsgi.cpython-38.pyc │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── logs │ └── uwsgi.log ├── manage.py ├── media ├── static │ ├── jquery.min.js │ └── loading.gif ├── templates │ └── upload.html ├── uwsgi.ini └── uwsgi.pid
View nginx access.log