mirror of
https://github.com/himool/HimoolERP.git
synced 2024-09-20 06:46:00 +08:00
feat: update
This commit is contained in:
parent
d1476d0bb3
commit
e6b764a88c
5
configs/.gitignore
vendored
Normal file
5
configs/.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
|
||||
# Except this file
|
||||
!.gitignore
|
|
@ -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/'
|
|
@ -1,7 +0,0 @@
|
|||
import multiprocessing
|
||||
|
||||
|
||||
bind = '0.0.0.0:8000'
|
||||
workers = multiprocessing.cpu_count() * 2 + 1
|
||||
reload = True
|
||||
daemon = True
|
|
@ -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/;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue