This project is an auto sign-in tool for Aliyun Drive, sending sign-in results to DingTalk.
1.0K
This project is an auto sign-in tool designed to sign in to Aliyun Drive and send the sign-in results to DingTalk.
Aliyun Drive sign-in interface has introduced signatures. The signature algorithm is not yet known. Automatic sign-in is currently not possible. Only notifications are available.
This tool automates the sign-in process for Aliyun Drive and sends the sign-in results to DingTalk for timely status updates.
You can run this project using either environment variables or a configuration file.
Before running the project, ensure you have obtained the refresh_token for Aliyun Drive and the access_token and secret for the DingTalk custom robot. Then, you can run the project with the following command:
docker run -d --name aliyundrive-sign --restart=unless-stopped \
-e ALIYUNDRIVE_REFRESH_TOKENS="your aliyundrive refresh_token" \
-e DINGTALK_ACCESS_TOKEN="your dingtalk custom robot access_token" \
-e DINGTALK_SECRET="your dingtalk custom robot secret" \
-e SCHEDULE_CRON="0 8 * * *" \
jerryin/aliyundrive-sign
| Variable Name | Required | Description |
|---|---|---|
ALIYUNDRIVE_REFRESH_TOKENS | Yes | Aliyun Drive refresh_token, you can add multiple tokens separated by a comma (,), without spaces |
DINGTALK_ACCESS_TOKEN | No | access_token of the custom robot Webhook Custom Robot Official Instructions |
DINGTALK_SECRET | No | secret for signing the custom robot Webhook |
SCHEDULE_CRON | No | Cron schedule for the task. Default: 0 8 * * * |
You can also run this project using a configuration file. Before running the project, ensure you have created a configuration file and mounted it to the Docker container. Here is a sample configuration file:
[aliyundrive]
refresh_tokens = xxxx,xxxx
[dingtalk]
access_token =
secret =
[schedule]
cron = 0 8 * * *
[log]
loglevel = INFO
Run the project with the following command:
docker run -d --name aliyundrive-sign --restart=unless-stopped \
-v path/to/config.ini:/app/config.ini \
jerryin/aliyundrive-sign
refresh_token, follow these steps:F12 to open the browser's developer tools.Application tab.Local Storage -> https://www.aliyundrive.com.token key under localStorage and copy the refresh_token to your configuration file or environment variable.JSON.parse(localStorage.token).refresh_tokenThis project is released under the MIT License. Please see the LICENSE file for more information.
If you have any questions or feedback, please contact me through the GitHub page of this project.
Content type
Image
Digest
sha256:89be4a720…
Size
15.3 MB
Last updated
almost 2 years ago
docker pull jerryin/aliyundrive-sign