-
-
Save wisnubaldas/9cced07a8a2a3ae7f94da9e4ecec8368 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #-------------------------------------------------------------------- | |
| # 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 = '' | |
| # app.forceGlobalSecureRequests = false | |
| # app.sessionDriver = 'CodeIgniter\Session\Handlers\FileHandler' | |
| # app.sessionCookieName = 'ci_session' | |
| # app.sessionSavePath = NULL | |
| # app.sessionMatchIP = false | |
| # app.sessionTimeToUpdate = 300 | |
| # app.sessionRegenerateDestroy = false | |
| # app.cookiePrefix = '' | |
| # app.cookieDomain = '' | |
| # app.cookiePath = '/' | |
| # app.cookieSecure = false | |
| # app.cookieHTTPOnly = false | |
| # app.CSRFProtection = false | |
| # app.CSRFTokenName = 'csrf_test_name' | |
| # app.CSRFCookieName = 'csrf_cookie_name' | |
| # app.CSRFExpire = 7200 | |
| # app.CSRFRegenerate = true | |
| # app.CSRFExcludeURIs = [] | |
| # 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.tests.hostname = localhost | |
| # database.tests.database = ci4 | |
| # database.tests.username = root | |
| # database.tests.password = root | |
| # database.tests.DBDriver = MySQLi | |
| #-------------------------------------------------------------------- | |
| # CONTENT SECURITY POLICY | |
| #-------------------------------------------------------------------- | |
| # contentsecuritypolicy.reportOnly = false | |
| # contentsecuritypolicy.defaultSrc = 'none' | |
| # contentsecuritypolicy.scriptSrc = 'self' | |
| # contentsecuritypolicy.styleSrc = 'self' | |
| # contentsecuritypolicy.imageSrc = 'self' | |
| # contentsecuritypolicy.base_uri = null | |
| # contentsecuritypolicy.childSrc = null | |
| # contentsecuritypolicy.connectSrc = 'self' | |
| # contentsecuritypolicy.fontSrc = null | |
| # contentsecuritypolicy.formAction = null | |
| # contentsecuritypolicy.frameAncestors = null | |
| # contentsecuritypolicy.mediaSrc = null | |
| # contentsecuritypolicy.objectSrc = null | |
| # contentsecuritypolicy.pluginTypes = null | |
| # contentsecuritypolicy.reportURI = null | |
| # contentsecuritypolicy.sandbox = false | |
| # contentsecuritypolicy.upgradeInsecureRequests = false | |
| #-------------------------------------------------------------------- | |
| # HONEYPOT | |
| #-------------------------------------------------------------------- | |
| # honeypot.hidden = 'true' | |
| # honeypot.label = 'Fill This Field' | |
| # honeypot.name = 'honeypot' | |
| # honeypot.template = '<label>{label}</label><input type="text" name="{name}" value=""/>' |
This file contains hidden or 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
| use AuthenticatesUsers; | |
| /** | |
| * Where to redirect users after login. | |
| * | |
| * @var string | |
| */ | |
| protected $redirectTo = '/administrator'; | |
| /** | |
| * Create a new controller instance. | |
| * | |
| * @return void | |
| */ | |
| public function __construct(Request $request) | |
| { | |
| // dump($_SERVER['HTTP_REFERER']); | |
| $this->middleware('guest')->except('logout'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment