-
-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adequação para usar variáveis de ambiente via arquivo .env e aj…
…ustado instalação e seus scripts
- Loading branch information
Showing
16 changed files
with
765 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
APP_NAME="Map-OS" | ||
APP_SUBNAME="Sistema de Controle de Ordens de Serviço" | ||
APP_TIMEZONE=America/Sao_Paulo | ||
APP_BASEURL="enter_baseurl" | ||
APP_CHARSET=UTF-8 | ||
APP_ENCRYPTION_KEY="enter_encryption_key" | ||
APP_ENVIRONMENT="pre_installation" | ||
|
||
APP_SESS_DRIVER=database | ||
APP_SESS_COOKIE_NAME=MAPOS_SESSION | ||
APP_SESS_EXPIRATION=7200 | ||
APP_SESS_SAVE_PATH=ci_sessions | ||
APP_SESS_MATCH_IP=false | ||
APP_SESS_TIME_TO_UPDATE=300 | ||
APP_SESS_REGENERATE_DESTROY=false | ||
|
||
APP_COOKIE_PREFIX= | ||
APP_COOKIE_DOMAIN= | ||
APP_COOKIE_PATH=/ | ||
APP_COOKIE_SECURE=false | ||
APP_COOKIE_HTTPONLY=false | ||
|
||
APP_CSRF_PROTECTION=true | ||
APP_CSRF_TOKEN_NAME="MAPOS_CSRF_TOKEN" | ||
APP_CSRF_COOKIE_NAME="MAPOS_CSRF_COOKIE" | ||
APP_CSRF_EXPIRE=7200 | ||
APP_CSRF_REGENERATE=true | ||
|
||
APP_COMPRESS_OUTPUT=false | ||
APP_PROXY_IPS= | ||
|
||
DB_DSN= | ||
DB_HOSTNAME=enter_hostname | ||
DB_USERNAME=enter_db_username | ||
DB_PASSWORD=enter_db_password | ||
DB_DATABASE=enter_database_name | ||
DB_DRIVER=mysqli | ||
DB_PREFIX= | ||
DB_CHARSET=utf8 | ||
DB_COLLATION=utf8_general_ci | ||
|
||
EMAIL_PROTOCOL=smtp | ||
EMAIL_SMTP_HOST=smtp.gmail.com | ||
EMAIL_SMTP_CRYPTO=tls | ||
EMAIL_SMTP_PORT=587 | ||
EMAIL_SMTP_USER=[email protected] | ||
EMAIL_SMTP_PASS=senhadoemail | ||
EMAIL_VALIDATE=true | ||
EMAIL_MAILTYPE=html | ||
EMAIL_CHARSET=utf-8 | ||
EMAIL_NEWLINE="\r\n" | ||
EMAIL_BCC_BATCH_MODE=false | ||
EMAIL_WORDWRAP=false | ||
EMAIL_PRIORITY=3 | ||
|
||
PAYMENT_GATEWAYS_EFI_PRODUCTION=false | ||
PAYMENT_GATEWAYS_EFI_CREDENTIAIS_CLIENT_ID= | ||
PAYMENT_GATEWAYS_EFI_CREDENTIAIS_CLIENT_SECRET= | ||
PAYMENT_GATEWAYS_EFI_TIMEOUT=30 | ||
PAYMENT_GATEWAYS_EFI_BOLETO_EXPIRATION=P3D | ||
|
||
PAYMENT_GATEWAYS_MERCADO_PAGO_CREDENTIALS_ACCESS_TOKEN= | ||
PAYMENT_GATEWAYS_MERCADO_PAGO_CREDENTIALS_PUBLIC_KEY= | ||
PAYMENT_GATEWAYS_MERCADO_PAGO_CREDENTIALS_CLIENT_ID= | ||
PAYMENT_GATEWAYS_MERCADO_PAGO_CREDENTIALS_CLIENT_SECRET= | ||
PAYMENT_GATEWAYS_MERCADO_PAGO_CREDENTIALS_INTEGRATOR_ID= | ||
PAYMENT_GATEWAYS_MERCADO_PAGO_CREDENTIALS_PLATFORM_ID= | ||
PAYMENT_GATEWAYS_MERCADO_PAGO_CREDENTIALS_CORPORATION_ID= | ||
PAYMENT_GATEWAYS_MERCADO_PAGO_BOLETO_EXPIRATION=P3D | ||
|
||
PAYMENT_GATEWAYS_ASAAS_PRODUCTION=false | ||
PAYMENT_GATEWAYS_ASAAS_NOTIFY=false | ||
PAYMENT_GATEWAYS_ASAAS_CREDENTIAIS_API_KEY= | ||
PAYMENT_GATEWAYS_ASAAS_BOLETO_EXPIRATION=P3D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ application/logs/* | |
ci_sessions/ | ||
|
||
uploads | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?php | ||
|
||
$config['protocol'] = 'smtp'; | ||
$config['smtp_host'] = 'smtp.gmail.com'; | ||
$config['smtp_crypto'] = 'tls'; // tls or ssl | ||
$config['smtp_port'] = 587; | ||
$config['smtp_user'] = '[email protected]'; | ||
$config['smtp_pass'] = 'senhadoemail'; | ||
$config['validate'] = true; // validar email | ||
$config['mailtype'] = 'html'; // text ou html | ||
$config['charset'] = 'utf-8'; | ||
$config['newline'] = "\r\n"; | ||
$config['bcc_batch_mode'] = false; | ||
$config['wordwrap'] = false; | ||
$config['priority'] = 3; // 1, 2, 3, 4, 5 | Email Priority. 1 = highest. 5 = lowest. 3 = normal. | ||
$config['protocol'] = $_ENV['EMAIL_PROTOCOL'] ?? 'smtp'; | ||
$config['smtp_host'] = $_ENV['EMAIL_SMTP_HOST'] ?? 'smtp.gmail.com'; | ||
$config['smtp_crypto'] = $_ENV['EMAIL_SMTP_CRYPTO'] ?? 'tls'; // tls or ssl | ||
$config['smtp_port'] = $_ENV['EMAIL_SMTP_PORT'] ?? 587; | ||
$config['smtp_user'] = $_ENV['EMAIL_SMTP_USER'] ?? '[email protected]'; | ||
$config['smtp_pass'] = $_ENV['EMAIL_SMTP_PASS'] ?? 'senhadoemail'; | ||
$config['validate'] = isset($_ENV['EMAIL_VALIDATE']) ? filter_var($_ENV['EMAIL_VALIDATE'], FILTER_VALIDATE_BOOLEAN) : true; // validar email | ||
$config['mailtype'] = $_ENV['EMAIL_MAILTYPE'] ?? 'html'; // text ou html | ||
$config['charset'] = $_ENV['EMAIL_CHARSET'] ?? 'utf-8'; | ||
$config['newline'] = $_ENV['EMAIL_NEWLINE'] ?? "\r\n"; | ||
$config['bcc_batch_mode'] = isset($_ENV['EMAIL_BCC_BATCH_MODE']) ? filter_var($_ENV['EMAIL_BCC_BATCH_MODE'], FILTER_VALIDATE_BOOLEAN) : false; | ||
$config['wordwrap'] = isset($_ENV['EMAIL_WORDWRAP']) ? filter_var($_ENV['EMAIL_WORDWRAP'], FILTER_VALIDATE_BOOLEAN) : false; | ||
$config['priority'] = $_ENV['EMAIL_PRIORITY'] ?? 3; // 1, 2, 3, 4, 5 | Email Priority. 1 = highest. 5 = lowest. 3 = normal. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,5 @@ | |
'params' => [] | ||
]; | ||
|
||
|
||
/* End of file hooks.php */ | ||
/* Location: ./application/config/hooks.php */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.