feat: update

This commit is contained in:
Czw 2023-10-10 18:28:59 +08:00
parent d1476d0bb3
commit e6b764a88c
5 changed files with 5 additions and 63 deletions

5
configs/.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View file

View file

@ -1,31 +0,0 @@
from pathlib import Path
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
BASE_DIR = Path(__file__).resolve().parent.parent
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
# Tencent 短信接口
SECRET_ID = ''
SECRET_KEY = ''
SMS_SDK_APP_ID = ''
TEMPLATE_ID = ''
SIGN_NAME = ''
REGION = ''
# 系统接口
# CRM_URL = None
CRM_URL = 'http://127.0.0.1:11901/api/admin/register_account/'

View file

@ -1,7 +0,0 @@
import multiprocessing
bind = '0.0.0.0:8000'
workers = multiprocessing.cpu_count() * 2 + 1
reload = True
daemon = True

View file

@ -1,25 +0,0 @@
server {
listen 9070;
charset utf-8;
gzip_static on;
location / {
root /home/wms/frontend/dist/;
index index.html index.html;
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://localhost:12223/api/;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /media/ {
alias /home/wms/media/;
}
location /download/ {
alias /home/wms/download/;
}
}