#--------------------------------------------------------------------
# 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
#CI_ENVIRONMENT= production

#--------------------------------------------------------------------
# APP
#--------------------------------------------------------------------
# restrictedRootPassword = 'smallCompany@8DtQ23'
# restrictedRootPassword = 'bigCompany#D3rOtQ29'
#restrictedRootPassword = 'smallCompany@8DtQ23'

 CRON_HTTP_TOKEN =  123

 app.baseURL = 'https://asd.rnr75.com/' 
 app.imagePortalDir = 'https://media.rnr75.com/portal_images/'
 app.imageDir = 'https://media.rnr75.com/productImages/'
 app.imageDataDir  = 'https://media.rnr75.com/data/'
 app.documentsDir  = 'media.rnr75.com/data/'
 app.imageCasheDir = 'https://media.rnr75.com/cache/thumbs/productImages/'
 
 app.mediaUrl = https://media.rnr75.com/
 app.mediaRoot = /public_html/media.rnr75.com/
  app.exclude_zenovaIds = ''


# Gensoft
#-----------------------------------
 app.baseSklad     = 'Енди Маркет 2'
 app.sklad2        = ''
 app.sklad3        = ''
 app.sklad4        = 'ЕНДИ МАРКЕТ 1'

 app.localSite     = 3
 app.gensoftEnable = 1  
 app.passwordLock = 'Parola#1234'
  app.passwordUnlockOfer = '1234#1234'

 app.indexPage     =''
 app.defaultLocale ='bg'
 app.appTimezone   ='Europe/Sofia'
 app.forceGlobalSecureRequests = true
 app.CSPEnabled    = false

 feature.autoRoutesImproved = true

#--------------------------------------------------------------------
# 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

#--------------------------------------------------------------------
# ENCRYPTION
#--------------------------------------------------------------------

# encryption.key =
# encryption.driver = OpenSSL
# encryption.blockSize = 16
# encryption.digest = SHA512

#--------------------------------------------------------------------
# COOKIE
#--------------------------------------------------------------------

 cookie.prefix = 'core_'
 cookie.expires = 0
 cookie.path = '/'
 cookie.domain = ''
 cookie.secure = true
 cookie.httponly = true
 cookie.samesite = 'Lax'
 cookie.raw = false

#--------------------------------------------------------------------
# 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 = 'session'
 security.tokenRandomize = true
 security.tokenName = 'csrf_token_name'
 security.headerName = 'X-CSRF-TOKEN'
 security.cookieName = 'csrf_cookie_name'
 security.expires = 27800
 security.regenerate = false
 security.redirect = true
 security.samesite = 'Lax'

#--------------------------------------------------------------------
# SESSION
#--------------------------------------------------------------------

 session.cookieName = 'ci_session'
 session.expiration = 28800
 session.timeToUpdate = 300
 session.regenerateDestroy = false
 session.driver = 'CodeIgniter\Session\Handlers\FileHandler'
 session.matchIP = false
  # session.savePath = null
  # session.driver = 'CodeIgniter\Session\Handlers\DatabaseHandler'
  # session.savePath = 'ci_sessions'
  # session.sessionGCProbability = 5

#--------------------------------------------------------------------
# LOGGER
#--------------------------------------------------------------------

logger.threshold = 3

#--------------------------------------------------------------------
# CURLRequest
#--------------------------------------------------------------------

# curlrequest.shareOptions = true

JWT_SECRET = 'bGS6lzFqvvSQ8ALbOxatm7/Vk7mLQyzqaS34Q4oR1ew='

#--------------------------------------------------------------------
# PERFORMANCE & CACHE SETTINGS

# Enable system cache for frequently accessed pages
cache.defaultHandler = 'file'
cache.backupHandler = 'dummy'
cache.fileExtension = '.ci4cache'
cache.security = 700  # Задайте права за достъп
cache.prefix = 'ci_'
cache.ttl = 86400  # Време на живот на кеша (1 ден)

# Включете системен кеш за най-често достъпваните страници
cache.pageCache = true
cache.pageCacheTTL = 86400  # Кеширане на страници за 1 ден
cache.queryCache = true  # Кеширане на заявки към базата данни
cache.queryCacheTTL = 3600  # Време за живот на кешираните заявки (1 час)


#--------------------------------------------------------------------
# DATABASE
#--------------------------------------------------------------------

 database.default.hostname = localhost
 database.default.database = rnr75_oferta
 database.default.username = rnr75_val
 database.default.password = Wu64VwGSuAQ0
 database.default.DBDriver = MySQLi
 database.default.cacheOn = true 
