Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.6 KB

README.md

File metadata and controls

40 lines (23 loc) · 1.6 KB

TokenScript repo

Update instruction for sysop

If the TokenScript files in the repo is updated, the sysop should recreate the .htaccess file by:

$ make .htaccess

This would generate a new .htaccess file based on the contract addresses mentioned in the TokenScript files.

Then, run this to upload the files. This will only work if you already configured SSH access:

$ make upload

Configure SSH access

This is tricky. You need 2 things:

  1. Adding your IP address to the whitelist. Official document
  2. Adding your key to the cPanel.

Note that the whitelist is not in the cPanel.

In reality, both are ticky.

  1. Adding your IP address to the whitelist - the whitelist only allows 3 entries, you need to delete an old one to add a new one.
  2. Adding SSH public key: It's better to add your SSH public key by asking a colleague to do the following, avoid using cPanel at all, since cPanel requires you to share your private key, which should not be shared in any case.
$ ssh -p 2683 [email protected]
$ cat >> .ssh/authorized_keys

How the .htaccess file works

The Makfile generates a list of rewrite rules for accessing TokenScript files based on their token contract addresses. See more in how_it_works.md

Background: how user agents get tokenscripts

See how user agents get tokenscripts.