diff --git a/docs/index.html b/docs/index.html index ecbf621..09d7417 100644 --- a/docs/index.html +++ b/docs/index.html @@ -50,7 +50,7 @@
-This program acts as a proxy to serve files directly from repositories.
It expects the following environment variables to be set:
API_URL - Base Forgejo API url (ex. https://git.brut.systems)API_TOKEN - Forgejo API authorization tokenREDIRECT_URL - Redirect url when access fails or files do not exist (ex. https://git.brut.systems)PORT - Port to listen onWhen a request like http://localhost:8080/user/repository/path/to/file is sent to the proxy, it will dynamically fetch that file from the repository and return it to the user.
Create a file at /etc/systemd/system/docs.brut.service with the following:
[Unit]
+ Docs.Brut.Systems
This program acts as a proxy to serve files directly from repositories.
It expects the following environment variables to be set:
API_URL - Base Forgejo API url (ex. https://git.brut.systems)API_TOKEN - Forgejo API authorization tokenREDIRECT_URL - Redirect url when access fails or files do not exist (ex. https://git.brut.systems)PORT - Port to listen on
How It Works
When a request like http://:PORT/user/repository/path/to/file is sent to the proxy, it will dynamically fetch that file from the repository and return it to the user.
Usage With Systemd
Create a file at /etc/systemd/system/docs.brut.service with the following:
[Unit]
Description=Serves files from Git repositories
After=network.target
[Service]