2021年8月16日

摘要: ssl_certificate vhost/6001924_xxx.xxxx.cn.pem; ssl_certificate_key vhost/6001924_xxx.xxxx.cn.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128 阅读全文

posted @ 2021-08-16 17:24 baskbug 阅读(45) 评论(0) 推荐(0)

摘要: server{ server_name ; listen 80 default_server; add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET,POST'; add_head 阅读全文

posted @ 2021-08-16 17:23 baskbug 阅读(278) 评论(0) 推荐(0)

摘要: 项目下urls.py 引入admin from django.contrib import admin 引入path,include from django.urls import path,include 引入项目下的views from . import views urlpatterns = 阅读全文

posted @ 2021-08-16 17:18 baskbug 阅读(178) 评论(0) 推荐(0)

摘要: # uwsig使用配置文件启动 [uwsgi] # 项目目录 chdir=/myfiles/xxx/xxx/my_project # 指定项目的application module=my_project.wsgi:application # 指定sock的文件路径 socket=/myfiles/x 阅读全文

posted @ 2021-08-16 16:59 baskbug 阅读(416) 评论(0) 推荐(0)