×

注意!页面内容来自https://wiki.wabbajack.org/wabbajack_cdn_and_gallery_access/Getting CDN Access.html,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页

Getting CDN Access

The Wabbajack CDN recognizes Github personal access tokens. These tokens are generated by a userand should be treated as you would a password: don't share them and revoke them if you think they are stolen. These PATs can be setup with various levels of permissionsso it is important to follow the steps below so you do not create a token that has too broad of information. This will insure that if the token does get leakedthe user can only read/update data in the repository (which could then be undone later by you). Higher level tokens could be used to create new repositories or delete existing account dataso just use the lowest level of permissions and all will be well. As an asideWabbajack never stores these tokens to diskso should you lose them you will need to regenerate themthe Wabbajack admins have no power to recover lost tokens.

Creating a Token

To create a tokenstart by going to Githublogging inthen click on your avatar on the top-right of the screenand click Settings:

Step1

On the next screenfind Developer Settings

Step2

Now select Personal access tokens and Tokens (classic)

Step3

Click Generate new token then Generate new token (classic)

Step4

You may be asked to enter your password for security reasons. On the next pageselect a name for the token (the name doesn't matter). And an expiry date. Github will warn you if you don't set the token to expirebut if you do set it to expire you will need to go through these steps again once the token's expire date has passed. It's up to you what to decide what to time length to use here.

Leave all the permissions at the defaultexcept for the ones shown in this image. Wabbajack will need these permissions to see and update your modlist.on on your behalf.

Step10

Now click "Generate Token"

Step6

On the final pageclick the icon to copy the token to the clipboard. It is recommended that you save this somewhere secureonce you close this browser tab you will never be able to retrieve this token again and you will need to recreate it from scratch.

Step7

Installing the token

Now go to c:\Users\<your user name>\AppData\Local\Wabbajack and create a text file called author-api-key.txt

Step8

Open the filepaste your token into itsave the fileand exit your text editor

Using the CDN

Having this file in your Wabbajack folder will enable the CDN upload service. So open Wabbajack and click the Settings buttonyou should see a panel named File Uploader:

Step9

Click Select to select a file to uploadand Upload to upload it. After a successful upload you will be able to see your files at https://build.wabbajack.org/authored_files

Clicking the Manage Files button will take you to a screen that will allow you to see your files and delete any file you no longer need. Space is limited on the CDNso please delete any files you no longer needbut feel free to upload generated LOD files.wabbajack files or whatever else you need.

Using CDN files

After you have uploaded a fileyou can get a link to it from the authored files page. Note: do not use the slow links on that pagethese links are used for troubleshooting and when users cannot otherwise download a file. They are quite heavy on the server so please use main file link. Right-click on the file link on that pagethen click copy link.

After you have a link to a filego to your Mod Organizer 2 folderand edit the .meta file for the file you uploaded. You need only this text in the .meta for Wabbajack to be able to source from it:

[General]
directURL=<link you copied goes here>

Final Notes

Wabbajack staff reserve the right to delete troll files or files including illegal content. We also reserve the right to ban GitHub accounts that repeatedly violated these limitations. We will try to contact you firstand will assume that such problems arise from ignorance rather than malice. If you have questions about any of these feel free to ask on our official Discord.