[GH-ISSUE #1867] 💬 [Question] app_data_dir and version 2 #729

Open
opened 2026-02-25 21:35:46 +03:00 by kerem · 1 comment
Owner

Originally created by @jac-ron on GitHub (Feb 16, 2026).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1867

The install guide (https://www.cypht.org/install/) says
8. Other INI files: Cypht will look for them in the location defined by "app_data_dir" in the hm3.ini file.
I think this is a leftover from version 1, but what would be the equivalent for version 2?

Originally created by @jac-ron on GitHub (Feb 16, 2026). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1867 The install guide (https://www.cypht.org/install/) says `8. Other INI files:` `Cypht will look for them in the location defined by "app_data_dir" in the hm3.ini file.` I think this is a leftover from version 1, but what would be the equivalent for version 2?
Author
Owner

@Baraka24 commented on GitHub (Feb 17, 2026):

Thanks for the question.
Hello @jac-ron, you are right that is applicable in version 1,
Here is an example github.ini file:
https://github.com/cypht-org/cypht/blob/1.4.x/modules/github/github.ini, its content:

; Constants used for oauth2 communication with github.com
;
; Once you edit this file, you must move it to the directory defined by
; app_data_dir in your hm3.ini file. You will also need to re-run the
; config_gen.php script.
;
; SECURITY ALERT ! MAKE SURE THAT THIS FILE IS NOT ACCESSIBLE BY THE BROWSER !       
;
[github.com]
client_id=
client_secret=
redirect_uri=
auth_url="https://github.com/login/oauth/authorize"
token_url="https://github.com/login/oauth/access_token"

And its equivalent in version 2 is in .env.example file github.com/cypht-org/cypht@085cbea534/.env.example (L160), its content:

#github.com
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URI=http://localhost/?page=home
GITHUB_AUTH_URL=https://github.com/login/oauth/authorize
GITHUB_TOKEN_URL=https://github.com/login/oauth/access_token
<!-- gh-comment-id:3913497920 --> @Baraka24 commented on GitHub (Feb 17, 2026): Thanks for the question. Hello @jac-ron, you are right that is applicable in version 1, Here is an example github.ini file: https://github.com/cypht-org/cypht/blob/1.4.x/modules/github/github.ini, its content: ``` ; Constants used for oauth2 communication with github.com ; ; Once you edit this file, you must move it to the directory defined by ; app_data_dir in your hm3.ini file. You will also need to re-run the ; config_gen.php script. ; ; SECURITY ALERT ! MAKE SURE THAT THIS FILE IS NOT ACCESSIBLE BY THE BROWSER ! ; [github.com] client_id= client_secret= redirect_uri= auth_url="https://github.com/login/oauth/authorize" token_url="https://github.com/login/oauth/access_token" ``` And its equivalent in version 2 is in .env.example file https://github.com/cypht-org/cypht/blob/085cbea53488d98ee9f3a7eb25c52244b6ced0ef/.env.example#L160, its content: ``` #github.com GITHUB_CLIENT_ID= GITHUB_CLIENT_SECRET= GITHUB_REDIRECT_URI=http://localhost/?page=home GITHUB_AUTH_URL=https://github.com/login/oauth/authorize GITHUB_TOKEN_URL=https://github.com/login/oauth/access_token ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#729
No description provided.