-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
env
and Staging configuration template (#4)
- Loading branch information
1 parent
a5d3da7
commit d581aeb
Showing
5 changed files
with
458 additions
and
0 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
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,23 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| ERROR DISPLAY | ||
|-------------------------------------------------------------------------- | ||
| Don't show ANY in production environments. Instead, let the system catch | ||
| it and display a generic error message. | ||
| | ||
| If you set 'display_errors' to '1', CI4's detailed error report will show. | ||
*/ | ||
ini_set('display_errors', '0'); | ||
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| DEBUG MODE | ||
|-------------------------------------------------------------------------- | ||
| Debug mode is an experimental flag that can allow changes throughout | ||
| the system. It's not widely used currently, and may not survive | ||
| release of the framework. | ||
*/ | ||
defined('CI_DEBUG') || define('CI_DEBUG', false); |
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,143 @@ | ||
#-------------------------------------------------------------------- | ||
# Example Environment Configuration file | ||
# | ||
# This file can be used as a starting point for your own | ||
# custom .env files, and contains most of the possible settings | ||
# available in a default install. | ||
# | ||
# By default, all of the settings are commented out. If you want | ||
# to override the setting, you must un-comment it by removing the '#' | ||
# at the beginning of the line. | ||
#-------------------------------------------------------------------- | ||
|
||
#-------------------------------------------------------------------- | ||
# ENVIRONMENT | ||
#-------------------------------------------------------------------- | ||
|
||
CI_ENVIRONMENT = development | ||
|
||
#-------------------------------------------------------------------- | ||
# APP | ||
#-------------------------------------------------------------------- | ||
|
||
# app.baseURL = '' | ||
# If you have trouble with `.`, you could also use `_`. | ||
# app_baseURL = '' | ||
# app.forceGlobalSecureRequests = false | ||
# app.CSPEnabled = false | ||
|
||
#-------------------------------------------------------------------- | ||
# DATABASE | ||
#-------------------------------------------------------------------- | ||
|
||
# database.default.hostname = localhost | ||
# database.default.database = ci4 | ||
# database.default.username = root | ||
# database.default.password = root | ||
# database.default.DBDriver = MySQLi | ||
# database.default.DBPrefix = | ||
# database.default.port = 3306 | ||
|
||
# database.tests.hostname = localhost | ||
# database.tests.database = ci4_test | ||
# database.tests.username = root | ||
# database.tests.password = root | ||
# database.tests.DBDriver = MySQLi | ||
# database.tests.DBPrefix = | ||
# database.tests.port = 3306 | ||
|
||
#-------------------------------------------------------------------- | ||
# CONTENT SECURITY POLICY | ||
#-------------------------------------------------------------------- | ||
|
||
# contentsecuritypolicy.reportOnly = false | ||
# contentsecuritypolicy.defaultSrc = 'none' | ||
# contentsecuritypolicy.scriptSrc = 'self' | ||
# contentsecuritypolicy.styleSrc = 'self' | ||
# contentsecuritypolicy.imageSrc = 'self' | ||
# contentsecuritypolicy.baseURI = null | ||
# contentsecuritypolicy.childSrc = null | ||
# contentsecuritypolicy.connectSrc = 'self' | ||
# contentsecuritypolicy.fontSrc = null | ||
# contentsecuritypolicy.formAction = null | ||
# contentsecuritypolicy.frameAncestors = null | ||
# contentsecuritypolicy.frameSrc = null | ||
# contentsecuritypolicy.mediaSrc = null | ||
# contentsecuritypolicy.objectSrc = null | ||
# contentsecuritypolicy.pluginTypes = null | ||
# contentsecuritypolicy.reportURI = null | ||
# contentsecuritypolicy.sandbox = false | ||
# contentsecuritypolicy.upgradeInsecureRequests = false | ||
# contentsecuritypolicy.styleNonceTag = '{csp-style-nonce}' | ||
# contentsecuritypolicy.scriptNonceTag = '{csp-script-nonce}' | ||
# contentsecuritypolicy.autoNonce = true | ||
|
||
#-------------------------------------------------------------------- | ||
# COOKIE | ||
#-------------------------------------------------------------------- | ||
|
||
# cookie.prefix = '' | ||
# cookie.expires = 0 | ||
# cookie.path = '/' | ||
# cookie.domain = '' | ||
# cookie.secure = false | ||
# cookie.httponly = false | ||
# cookie.samesite = 'Lax' | ||
# cookie.raw = false | ||
|
||
#-------------------------------------------------------------------- | ||
# ENCRYPTION | ||
#-------------------------------------------------------------------- | ||
|
||
# encryption.key = | ||
# encryption.driver = OpenSSL | ||
# encryption.blockSize = 16 | ||
# encryption.digest = SHA512 | ||
|
||
#-------------------------------------------------------------------- | ||
# HONEYPOT | ||
#-------------------------------------------------------------------- | ||
|
||
# honeypot.hidden = 'true' | ||
# honeypot.label = 'Fill This Field' | ||
# honeypot.name = 'honeypot' | ||
# honeypot.template = '<label>{label}</label><input type="text" name="{name}" value=""/>' | ||
# honeypot.container = '<div style="display:none">{template}</div>' | ||
|
||
#-------------------------------------------------------------------- | ||
# SECURITY | ||
#-------------------------------------------------------------------- | ||
|
||
# security.csrfProtection = 'cookie' | ||
# security.tokenRandomize = false | ||
# security.tokenName = 'csrf_token_name' | ||
# security.headerName = 'X-CSRF-TOKEN' | ||
# security.cookieName = 'csrf_cookie_name' | ||
# security.expires = 7200 | ||
# security.regenerate = true | ||
# security.redirect = false | ||
# security.samesite = 'Lax' | ||
|
||
#-------------------------------------------------------------------- | ||
# SESSION | ||
#-------------------------------------------------------------------- | ||
|
||
# session.driver = 'CodeIgniter\Session\Handlers\FileHandler' | ||
# session.cookieName = 'ci_session' | ||
# session.expiration = 7200 | ||
# session.savePath = null | ||
# session.matchIP = false | ||
# session.timeToUpdate = 300 | ||
# session.regenerateDestroy = false | ||
|
||
#-------------------------------------------------------------------- | ||
# LOGGER | ||
#-------------------------------------------------------------------- | ||
|
||
# logger.threshold = 4 | ||
|
||
#-------------------------------------------------------------------- | ||
# CURLRequest | ||
#-------------------------------------------------------------------- | ||
|
||
# curlrequest.shareOptions = false |
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,143 @@ | ||
#-------------------------------------------------------------------- | ||
# Example Environment Configuration file | ||
# | ||
# This file can be used as a starting point for your own | ||
# custom .env files, and contains most of the possible settings | ||
# available in a default install. | ||
# | ||
# By default, all of the settings are commented out. If you want | ||
# to override the setting, you must un-comment it by removing the '#' | ||
# at the beginning of the line. | ||
#-------------------------------------------------------------------- | ||
|
||
#-------------------------------------------------------------------- | ||
# ENVIRONMENT | ||
#-------------------------------------------------------------------- | ||
|
||
CI_ENVIRONMENT = production | ||
|
||
#-------------------------------------------------------------------- | ||
# APP | ||
#-------------------------------------------------------------------- | ||
|
||
# app.baseURL = '' | ||
# If you have trouble with `.`, you could also use `_`. | ||
# app_baseURL = '' | ||
# app.forceGlobalSecureRequests = false | ||
# app.CSPEnabled = false | ||
|
||
#-------------------------------------------------------------------- | ||
# DATABASE | ||
#-------------------------------------------------------------------- | ||
|
||
# database.default.hostname = localhost | ||
# database.default.database = ci4 | ||
# database.default.username = root | ||
# database.default.password = root | ||
# database.default.DBDriver = MySQLi | ||
# database.default.DBPrefix = | ||
# database.default.port = 3306 | ||
|
||
# database.tests.hostname = localhost | ||
# database.tests.database = ci4_test | ||
# database.tests.username = root | ||
# database.tests.password = root | ||
# database.tests.DBDriver = MySQLi | ||
# database.tests.DBPrefix = | ||
# database.tests.port = 3306 | ||
|
||
#-------------------------------------------------------------------- | ||
# CONTENT SECURITY POLICY | ||
#-------------------------------------------------------------------- | ||
|
||
# contentsecuritypolicy.reportOnly = false | ||
# contentsecuritypolicy.defaultSrc = 'none' | ||
# contentsecuritypolicy.scriptSrc = 'self' | ||
# contentsecuritypolicy.styleSrc = 'self' | ||
# contentsecuritypolicy.imageSrc = 'self' | ||
# contentsecuritypolicy.baseURI = null | ||
# contentsecuritypolicy.childSrc = null | ||
# contentsecuritypolicy.connectSrc = 'self' | ||
# contentsecuritypolicy.fontSrc = null | ||
# contentsecuritypolicy.formAction = null | ||
# contentsecuritypolicy.frameAncestors = null | ||
# contentsecuritypolicy.frameSrc = null | ||
# contentsecuritypolicy.mediaSrc = null | ||
# contentsecuritypolicy.objectSrc = null | ||
# contentsecuritypolicy.pluginTypes = null | ||
# contentsecuritypolicy.reportURI = null | ||
# contentsecuritypolicy.sandbox = false | ||
# contentsecuritypolicy.upgradeInsecureRequests = false | ||
# contentsecuritypolicy.styleNonceTag = '{csp-style-nonce}' | ||
# contentsecuritypolicy.scriptNonceTag = '{csp-script-nonce}' | ||
# contentsecuritypolicy.autoNonce = true | ||
|
||
#-------------------------------------------------------------------- | ||
# COOKIE | ||
#-------------------------------------------------------------------- | ||
|
||
# cookie.prefix = '' | ||
# cookie.expires = 0 | ||
# cookie.path = '/' | ||
# cookie.domain = '' | ||
# cookie.secure = false | ||
# cookie.httponly = false | ||
# cookie.samesite = 'Lax' | ||
# cookie.raw = false | ||
|
||
#-------------------------------------------------------------------- | ||
# ENCRYPTION | ||
#-------------------------------------------------------------------- | ||
|
||
# encryption.key = | ||
# encryption.driver = OpenSSL | ||
# encryption.blockSize = 16 | ||
# encryption.digest = SHA512 | ||
|
||
#-------------------------------------------------------------------- | ||
# HONEYPOT | ||
#-------------------------------------------------------------------- | ||
|
||
# honeypot.hidden = 'true' | ||
# honeypot.label = 'Fill This Field' | ||
# honeypot.name = 'honeypot' | ||
# honeypot.template = '<label>{label}</label><input type="text" name="{name}" value=""/>' | ||
# honeypot.container = '<div style="display:none">{template}</div>' | ||
|
||
#-------------------------------------------------------------------- | ||
# SECURITY | ||
#-------------------------------------------------------------------- | ||
|
||
# security.csrfProtection = 'cookie' | ||
# security.tokenRandomize = false | ||
# security.tokenName = 'csrf_token_name' | ||
# security.headerName = 'X-CSRF-TOKEN' | ||
# security.cookieName = 'csrf_cookie_name' | ||
# security.expires = 7200 | ||
# security.regenerate = true | ||
# security.redirect = false | ||
# security.samesite = 'Lax' | ||
|
||
#-------------------------------------------------------------------- | ||
# SESSION | ||
#-------------------------------------------------------------------- | ||
|
||
# session.driver = 'CodeIgniter\Session\Handlers\FileHandler' | ||
# session.cookieName = 'ci_session' | ||
# session.expiration = 7200 | ||
# session.savePath = null | ||
# session.matchIP = false | ||
# session.timeToUpdate = 300 | ||
# session.regenerateDestroy = false | ||
|
||
#-------------------------------------------------------------------- | ||
# LOGGER | ||
#-------------------------------------------------------------------- | ||
|
||
# logger.threshold = 4 | ||
|
||
#-------------------------------------------------------------------- | ||
# CURLRequest | ||
#-------------------------------------------------------------------- | ||
|
||
# curlrequest.shareOptions = false |
Oops, something went wrong.