-
Notifications
You must be signed in to change notification settings - Fork 23
[Web service] GitLab browser
Hosted by laitos web server, the GitLab browser enables you to browse and download files from git repositories hosted on GitLab.com.
On GitLab.com, visit User Settings - Account to retrieve "Private Token".
Then, for each project you wish to browse, visit its "Settings - General - General Project Settings", and note down the "Project ID", which will soon be used in configuration.
- Place the following JSON data under JSON key
HTTPHandlers
:
- String
GitlabBrowserEndpoint
- URL locations that will serve GitLab browser; keep it a secret to yourself, and make it difficult to guess. - Object
GitlabBrowserEndpointConfig
that comes with the following mandatory properties:
Property | Type | Meaning |
---|---|---|
PrivateToken | string | GitLab account's private token. |
Recipients | array of strings |
These Email addresses will be notified after files are downloaded.
Leave it empty to disable notifications. |
Projects | {"shortcut-name": #ProjectID#...} | Let user identify git repositories by shortcut names, to browse the git repositories associated with the Project IDs. |
- If Email notifications are to be enabled, follow outgoing mail configuration.
Here is an example setup:
{ ... "HTTPHandlers": { ... "GitlabBrowserEndpoint": "/very-secret-gitlab-browser", "GitlabBrowserEndpointConfig": { "PrivateToken": "zpbzwmoigtmrnkjgb", "Projects": { "GoodProject1": "3031111", "AwesomeProject2": "3032222", "BeautifulCode3": "3033333" }, "Recipients": ["me@example.com"] }, ... }, ... }
GitLab browser is hosted by web server, therefore remember to run web server.
In a web browser, navigate to GitlabBrowserEndpoint
of laitos web server.
To browse git repository:
- Enter project shortcut name.
- Click "Go".
- Navigate to sub-directories by entering their full path and click "Go".
To download a file:
- Enter project shortcut name.
- Navigate to directory where file is located in.
- Enter file name to download.
- click "Download".
The "Private Token" has API access to all of your git repositories, therefore keep it secured, and do not let untrusted persons get hold of it!
Table of Contents
- Home
- Get started
- Component list
- Tips for running on public cloud
- Tips for using apps over satellite
- laitos terminal
Daemon Components
- DNS server
- Mail server
- Web server
- Web proxy server
- Telnet server
- Telegram chat-bot
- Simple IP services server
- SNMP server
- System maintenance
- Phone home telemetry
Web Service Components
- Twilio telephone/SMS hook
- Microsoft chat bot hook
- The Things Network LORA tracker integration
- Recurring commands
- App command form
- Simple app command execution API
- GitLab browser
- Temporary file storage
- Simple web proxy
- Desktop on a page (virtual machine)
- Read telemetry records
- Program health report
- System process explorer
- Prometheus metrics exporter
- HTTP request inspector
- HTTP request logger
Apps