Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
root response
Browse files Browse the repository at this point in the history
  • Loading branch information
realByg committed May 11, 2021
1 parent 75e0e06 commit 733cecc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
15 changes: 8 additions & 7 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
6. 配置环境变量

![](readme/410ca81f.png)
+ `_ANNOUNCEMENT`: 公告内容,去掉变量则不显示公告
+ `_GET_CODE_LINK`: 获取激活码的连接,可以不填
+ `_AAD_CONFIG`: [Azure Active Directory](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps)`APP` 凭证配置
+ `_OFFICE_DOMAINS`: Office 下的域名
+ `_OFFICE_SUBSCRIPTIONS`: Office 的的订阅配置
+ `_USERNAME_BLACKLIST`: 用户名黑名单
+ `_GENERATE_CODES_SECRET_PATH`: 生成激活码的路径,建议生成一个随机密码,生成激活码时浏览器访问 `https://<前缀>.workers.dev/<随机密码>/<数量>`
+ `_ANNOUNCEMENT`: 公告内容,去掉变量则不显示公告
+ `_GET_CODE_LINK`: 获取激活码的连接,可以不填
+ `_AAD_CONFIG`: [Azure Active Directory](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps)
`APP` 凭证配置
+ `_OFFICE_DOMAINS`: Office 下的域名
+ `_OFFICE_SUBSCRIPTIONS`: Office 的的订阅配置
+ `_USERNAME_BLACKLIST`: 用户名黑名单
+ `_GENERATE_CODES_SECRET_PATH`: 生成激活码的路径,建议生成一个随机密码,生成激活码时浏览器访问 `https://<前缀>.workers.dev/<随机密码>/<数量>`
5 changes: 4 additions & 1 deletion src/routes/root.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import {Middleware} from '@cfworker/web'

const asset = 'https://cdn.jsdelivr.net/gh/zayabighead/office-user-auto-create@client/bundle/index.html'

const root: Middleware = async ({req, res}) => {
res.body = 'it works'
const response = await fetch(asset)
res.body = response.text()
}

export default root

0 comments on commit 733cecc

Please sign in to comment.