mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-03-04 17:29:48 +00:00
This was initally generated by ai, but later has been heavily edited. The reason why it has been implemented is that there are plans to implement more features to ui, but it becomes hard to add new features to plain js, so I decided to rewrite it in typescript. Yet because it is still ai slop, it is still possible to enable old interface via configuration, even though new interface is turned on by default to get feedback
OAuth
- Create user from
AHRIMAN_OAUTH_USERenvironment variable (same as GitHub user). - Configure OAuth to use GitHub provider with client ID and secret specified in variables
AHRIMAN_OAUTH_CLIENT_IDandAHRIMAN_OAUTH_CLIENT_SECRETvariables respectively. - Setup repository named
ahriman-demowith architecturex86_64. - Start web server at port
8080. - Repository is available at
http://localhost:8080/repo.
Before you start, you need to create an application. It can be done by:
- Go to
https://github.com/settings/applications/new - Set application name and its homepage.
- Set callback url to
http://localhost:8080/api/v1/login - Copy Client ID.
- Generate new client secret and copy it.