# 班级信息化系统 **Repository Path**: zhijie032/class-information-system ## Basic Information - **Project Name**: 班级信息化系统 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: develop - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-12 - **Last Updated**: 2022-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目班级信息化系统 >简介: 它是基于swoole协程和协程框架hyperf搭建的高速、敏捷、常驻内存的php项目 #nginx 配置 ```nginx upstream oaclass { # 监听项目的端口 server 127.0.0.1:9501; } server { # 监听端口 listen 80; # 绑定的域名,填写您的域名 server_name www.oaclass.com; location / { # 将客户端的 Host 和 IP 信息一并转发到对应节点 proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # 转发Cookie,设置 SameSite proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict"; add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,token'; if ($request_method = 'OPTIONS') { return 204; } # 执行代理访问真实服务 proxy_pass http://oaclass; } } ``` ## 项目启动 命令(在根目录) > php bin/hyperf.php start