You can host your specific file on the GitHub repository.
The usage I assume is for one-line scripts.
(i.e. dotfiles or some install scripts, like curl https://example.com | sh
)
If you access from browsers, you'll redirected to the GitHub page, not a raw file.
For the development or testing, you can access to the different branches or tags.
To do this, simply add the ref name to the sub-directory.
(i.e. curl https://example.com/ref | sh
)
You can host your file on Deno Deploy.
-
Clone this repository
git clone https://github.com/5ouma/reproxy.git
-
Copy the
.env.tmpl
to.env
and edit as you prefer -
Deploy to Deno Deploy
deployctl deploy --prod --env-file='.env'
-
Create a new project with your forked repository
-
Set the environment variables (Don't forget!!)
-
Clone this repository
git clone https://github.com/5ouma/reproxy.git
-
Copy the
.env.template
to.env
and edit as you prefer -
Install Deno
-
Run the
server.ts
via these task runners# For production deno task start
# For development deno task dev
Name | Required |
---|---|
REPOSITORY_OWNER |
true |
REPOSITORY_NAME |
true |
REPOSITORY_PATH |
true |
GITHUB_TOKEN |
false |
Note
You need to add GITHUB_TOKEN
if you want to:
- Access the file in the private repository
- Avoid the API usage limit
β οΈ Issues: Feature Requests or Bug Reports- π¬ Discussions: General Chats or Questions
- π‘οΈ Security Advisories: Security Issues that should not be public
I happily welcome your contributions! Before you contribute, I would recommend reading CONTRIBUTING.md for a better development experience.