Skip to content

Commit

Permalink
All module .ini syntax changed to app config - either .php config fil…
Browse files Browse the repository at this point in the history
…es or .env files
  • Loading branch information
Shadow243 committed Nov 27, 2023
1 parent 23ef7cd commit ad2ca85
Show file tree
Hide file tree
Showing 33 changed files with 12,096 additions and 228 deletions.
54 changes: 53 additions & 1 deletion .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,56 @@ DEFAULT_SETTING_GITHUB_LIMIT=20
DEFAULT_SETTING_GITHUB_SINCE='-1 weeks'
DEFAULT_SETTING_INLINE_MESSAGE=false
DEFAULT_SETTING_ENABLE_KEYBOARD_SHORTCUTS=1
DEFAULT_SETTING_ENABLE_SIEVE_FILTER=false
DEFAULT_SETTING_ENABLE_SIEVE_FILTER=false


APP_2FA_SECRET=""
APP_2FA_SIMPLE=false

CARD_DAV_SERVER=http://localhost:5232

#DYNAMIC LOGIN
DYNAMIC_HOST=true
DYNAMIC_HOST_SUBDOMAIN=""
DYNAMIC_USER=false
DYNAMIC_SMTP_SUBDOMAIN=""
DYNAMIC_MAIL_SUBDOMAIN=""

#github.com
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URI=
GITHUB_AUTH_URL=https://github.com/login/oauth/authorize
GITHUB_AUTH_URL=https://github.com/login/oauth/access_token

#gmail
GMAIL_CLIENT_ID=
GMAIL_CLIENT_SECRET=
GMAIL_CLIENT_URI=
GMAIL_AUTH_URI=https://accounts.google.com/o/oauth2/auth
GMAIL_TOKEN_URI=https://www.googleapis.com/oauth2/v3/token
GMAIL_REFRESH_URI=https://www.googleapis.com/oauth2/v3/token

#aoutlook
OUTLOOK_CLIENT_ID=
OUTLOOK_CLIENT_SECRET=
OUTLOOK_CLIENT_URI=
OUTLOOK_AUTH_URI=https://login.live.com/oauth20_authorize.srf
OUTLOOK_TOKEN_URI=https://login.live.com/oauth20_token.srf
OUTLOOK_REFRESH_URI=https://login.live.com/oauth20_token.srf

#ldap
LDAP_SERVER=localhost
LDAP_ENABLE_TLS=true
LDAP_PORT=389
LDAP_BASE_DN="dc=example,dc=com"
LDAP_SEARCH_TERM="objectclass=inetOrgPerson"
LDAP_SEARCH_TERM=false
LDAP_USER=''
LDAP_PASS=''
LDAP_READ_WRITE=true

#WordPress
WORDPRESS_CLIENT_ID=
WORDPRESS_CLIENT_SECRET=
WORDPRESS_CLIENT_URI=
36 changes: 36 additions & 0 deletions config/2fa.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

return [
/*
| --------------------------------------------------------------------
| Constants used for 2 factor authentication with Google Authenticator
| --------------------------------------------------------------------
|
| Once you edit this file, you must move it to the directory defined by
| app_data_dir in your config/app.php file. No need to re-run the
| config_gen.php script.
|
| SECURITY ALERT ! MAKE SURE THAT THIS FILE IS NOT ACCESSIBLE BY THE BROWSER !
|
| Enter the raw secret value (minimum 10 characters) to be used with the Google
| Authenticator Application (or any TOTP app providing 6 digit pins). Users
| must opt-in for 2fa on the site settings page which provides a QR barcode
| to configure Google Authenticator.
|
| In order for 2fa to work, your server MUST have an accurate date and time,
| otherwise the codes won't match up. NTP is the standard way to keep a server's
| time synced: http://www.ntp.org/
|
*/
'2fa_secret' => env('APP_2FA_SECRET', ''),

/*
|
| By default the generated secret will be 64 characters before being base32
| encoded. To use a shorter secret that is easier to manually enter, set the
| following to true. Note that if you change this setting after users have
| enabled 2fa, they will have to use a backup code to login, then reset there
| account in the authenticator app.
*/
'2fa_simple' => env('APP_2FA_SIMPLE', false)
];
6 changes: 4 additions & 2 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

return [
/*
|
| -----------------------------------------------------------------------------
| General settings
| -----------------------------------------------------------------------------
|
*/

/*
| ------------
| Session Type
| ------------
Expand Down
22 changes: 22 additions & 0 deletions config/carddav.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

return [
/*
| [Personal]
| ----------------------------------------
| Constants used for CardDav communication
| ----------------------------------------
|
| Once you edit this file, you must move it to the directory defined by
| app_data_dir in your config/app.php file. No need to re-run the
| config_gen.php script.
|
| SECURITY ALERT ! MAKE SURE THAT THIS FILE IS NOT ACCESSIBLE BY THE BROWSER !
|
| Create one section for each CardDav backend you want to support. The section
| name will be used in the UI for the name of this addressbook
|
|
*/
'server' => env('CARD_DAV_SERVER', 'http://localhost:5232'),
];
Loading

0 comments on commit ad2ca85

Please sign in to comment.